home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / tool chest / quicktime / quicktime tools / quicktime xcmds / qtmovie stack / cards.xml < prev    next >
Encoding:
Text File  |  1992-06-12  |  116.6 KB  |  3,440 lines

  1. card_6858.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>6858</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2723</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>89</left>
  24.             <top>338</top>
  25.             <right>203</right>
  26.             <bottom>358</bottom>
  27.         </rect>
  28.         <style>roundrect</style>
  29.         <showName> <true /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <true /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>Click Here</name>
  41.         <script>on mouseUp
  42. global currWindow
  43.  
  44. if there is a window currwindow then close window currwindow
  45. QTMovie OpenMovie, tallWindoid, bg field fileName, the topleft of btn here
  46. get the result
  47. if "Error" is in it then
  48. answer it
  49. exit mouseUp
  50. end if
  51.  
  52. put ExtractFileName(bg field fileName) into currWindow
  53. set WindowCloseMsg of window currwindow to GoodBye
  54.  
  55. end mouseUp
  56.  
  57. </script>
  58.     </part>
  59.     <part>
  60.         <id>2</id>
  61.         <type>button</type>
  62.         <visible> <true /> </visible>
  63.         <reserved5> 0 </reserved5>
  64.         <reserved4> 0 </reserved4>
  65.         <reserved3> 0 </reserved3>
  66.         <reserved2> 0 </reserved2>
  67.         <reserved1> 0 </reserved1>
  68.         <enabled> <true /> </enabled>
  69.         <rect>
  70.             <left>217</left>
  71.             <top>56</top>
  72.             <right>265</right>
  73.             <bottom>96</bottom>
  74.         </rect>
  75.         <style>transparent</style>
  76.         <showName> <true /> </showName>
  77.         <highlight> <true /> </highlight>
  78.         <autoHighlight> <false /> </autoHighlight>
  79.         <sharedHighlight> <true /> </sharedHighlight>
  80.         <family>0</family>
  81.         <titleWidth>0</titleWidth>
  82.         <icon>0</icon>
  83.         <textAlign>center</textAlign>
  84.         <font>Chicago</font>
  85.         <textSize>12</textSize>
  86.         <textStyle>plain</textStyle>
  87.         <name>here</name>
  88.         <script>on mouseDown
  89. put the clickLoc into myClick
  90. put the loc of me into origLoc
  91. put item 1 of origLoc into origX
  92. put item 2 of origLoc into origY
  93. put item 1 of myClick into clickX
  94. put item 2 of myClick into clickY
  95. repeat while the mouse is down
  96. set loc of me to Min(Max(0,origX - (clickX - the mouseH)),width of this card),¬¨
  97. Min(Max(0, origY - (clickY - the mouseV)), height of this card)
  98. end repeat
  99. end mouseDown</script>
  100.     </part>
  101.     <part>
  102.         <id>3</id>
  103.         <type>field</type>
  104.         <visible> <false /> </visible>
  105.         <dontWrap> <false /> </dontWrap>
  106.         <dontSearch> <false /> </dontSearch>
  107.         <sharedText> <false /> </sharedText>
  108.         <fixedLineHeight> <false /> </fixedLineHeight>
  109.         <autoTab> <false /> </autoTab>
  110.         <lockText> <true /> </lockText>
  111.         <rect>
  112.             <left>8</left>
  113.             <top>55</top>
  114.             <right>212</right>
  115.             <bottom>320</bottom>
  116.         </rect>
  117.         <style>shadow</style>
  118.         <autoSelect> <false /> </autoSelect>
  119.         <showLines> <false /> </showLines>
  120.         <wideMargins> <false /> </wideMargins>
  121.         <multipleLines> <false /> </multipleLines>
  122.         <reservedFamily> 0 </reservedFamily>
  123.         <titleWidth>0</titleWidth>
  124.         <icon>0</icon>
  125.         <textAlign>left</textAlign>
  126.         <font>Palatino</font>
  127.         <textSize>18</textSize>
  128.         <textStyle>plain</textStyle>
  129.         <textHeight>24</textHeight>
  130.         <name>help text</name>
  131.         <script>on mouseUp
  132. hide me
  133. end mouseUp</script>
  134.     </part>
  135.     <content>
  136.         <layer>background</layer>
  137.         <id>5</id>
  138.         <text>Window Close Callback</text>
  139.     </content>
  140.     <content>
  141.         <layer>background</layer>
  142.         <id>4</id>
  143.         <text>Your Volume:Your Folder:Your File</text>
  144.     </content>
  145.     <content>
  146.         <layer>card</layer>
  147.         <id>3</id>
  148.         <text>You can specify a handler to be called as the window is closing. This example just plays a little tune.</text>
  149.     </content>
  150.     <name>Window Close Callback</name>
  151.     <script>on GoodBye wName
  152. play harpsichord tempo 200 "ge g bb d5 cq. g4h. ge g f bb g"
  153. Put "Aloha!"
  154. end GoodBye
  155. </script>
  156. </card>
  157.  
  158.  
  159. card_10057.xml
  160. <?xml version="1.0" encoding="utf-8" ?>
  161. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  162. <card>
  163.     <id>10057</id>
  164.     <filler1>0</filler1>
  165.     <cantDelete> <false /> </cantDelete>
  166.     <showPict> <true /> </showPict>
  167.     <dontSearch> <false /> </dontSearch>
  168.     <owner>2723</owner>
  169.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  170.     <part>
  171.         <id>2</id>
  172.         <type>button</type>
  173.         <visible> <true /> </visible>
  174.         <reserved5> 0 </reserved5>
  175.         <reserved4> 0 </reserved4>
  176.         <reserved3> 0 </reserved3>
  177.         <reserved2> 0 </reserved2>
  178.         <reserved1> 0 </reserved1>
  179.         <enabled> <true /> </enabled>
  180.         <rect>
  181.             <left>89</left>
  182.             <top>338</top>
  183.             <right>203</right>
  184.             <bottom>358</bottom>
  185.         </rect>
  186.         <style>roundrect</style>
  187.         <showName> <true /> </showName>
  188.         <highlight> <false /> </highlight>
  189.         <autoHighlight> <true /> </autoHighlight>
  190.         <sharedHighlight> <true /> </sharedHighlight>
  191.         <family>0</family>
  192.         <titleWidth>0</titleWidth>
  193.         <icon>0</icon>
  194.         <textAlign>center</textAlign>
  195.         <font>Chicago</font>
  196.         <textSize>12</textSize>
  197.         <textStyle>plain</textStyle>
  198.         <name>Click Here</name>
  199.         <script>on mouseUp
  200. global currWindow,halfTime
  201.  
  202. if there is a window currwindow then close window currwindow
  203. QTMovie OpenMovie, tallWindoid, bg field fileName, the topleft of btn here, invisible
  204. get the result
  205. if "Error" is in it then
  206. answer it
  207. exit mouseUp
  208. end if
  209.  
  210. put ExtractFileName(bg field fileName) into currWindow
  211.  
  212. put duration of window currwindow into dur
  213. put round(dur/2) into halfTime
  214.  
  215. -- Following 3 lines test backwards callback
  216. -- send pause to window currwindow
  217. -- set currTime of window currWindow to dur
  218. -- send reverse to window currWindow
  219.  
  220. -- TimedCallBack expects <handler name> space <time>
  221. -- Note: you can pass the keyword "end" for the time
  222. set TimedCallBack of window currwindow to intermission && halfTime
  223.  
  224. show window currWindow
  225. end mouseUp
  226.  
  227. </script>
  228.     </part>
  229.     <part>
  230.         <id>7</id>
  231.         <type>button</type>
  232.         <visible> <true /> </visible>
  233.         <reserved5> 0 </reserved5>
  234.         <reserved4> 0 </reserved4>
  235.         <reserved3> 0 </reserved3>
  236.         <reserved2> 0 </reserved2>
  237.         <reserved1> 0 </reserved1>
  238.         <enabled> <true /> </enabled>
  239.         <rect>
  240.             <left>217</left>
  241.             <top>56</top>
  242.             <right>265</right>
  243.             <bottom>96</bottom>
  244.         </rect>
  245.         <style>transparent</style>
  246.         <showName> <true /> </showName>
  247.         <highlight> <true /> </highlight>
  248.         <autoHighlight> <false /> </autoHighlight>
  249.         <sharedHighlight> <true /> </sharedHighlight>
  250.         <family>0</family>
  251.         <titleWidth>0</titleWidth>
  252.         <icon>0</icon>
  253.         <textAlign>center</textAlign>
  254.         <font>Chicago</font>
  255.         <textSize>12</textSize>
  256.         <textStyle>plain</textStyle>
  257.         <name>here</name>
  258.         <script>on mouseDown
  259. put the clickLoc into myClick
  260. put the loc of me into origLoc
  261. put item 1 of origLoc into origX
  262. put item 2 of origLoc into origY
  263. put item 1 of myClick into clickX
  264. put item 2 of myClick into clickY
  265. repeat while the mouse is down
  266. set loc of me to Min(Max(0,origX - (clickX - the mouseH)),width of this card),¬¨
  267. Min(Max(0, origY - (clickY - the mouseV)), height of this card)
  268. end repeat
  269. end mouseDown</script>
  270.     </part>
  271.     <part>
  272.         <id>8</id>
  273.         <type>field</type>
  274.         <visible> <false /> </visible>
  275.         <dontWrap> <false /> </dontWrap>
  276.         <dontSearch> <false /> </dontSearch>
  277.         <sharedText> <false /> </sharedText>
  278.         <fixedLineHeight> <false /> </fixedLineHeight>
  279.         <autoTab> <false /> </autoTab>
  280.         <lockText> <true /> </lockText>
  281.         <rect>
  282.             <left>8</left>
  283.             <top>55</top>
  284.             <right>212</right>
  285.             <bottom>320</bottom>
  286.         </rect>
  287.         <style>shadow</style>
  288.         <autoSelect> <false /> </autoSelect>
  289.         <showLines> <false /> </showLines>
  290.         <wideMargins> <false /> </wideMargins>
  291.         <multipleLines> <false /> </multipleLines>
  292.         <reservedFamily> 0 </reservedFamily>
  293.         <titleWidth>0</titleWidth>
  294.         <icon>0</icon>
  295.         <textAlign>left</textAlign>
  296.         <font>Palatino</font>
  297.         <textSize>18</textSize>
  298.         <textStyle>plain</textStyle>
  299.         <textHeight>24</textHeight>
  300.         <name>help text</name>
  301.         <script>on mouseUp
  302. hide me
  303. end mouseUp</script>
  304.     </part>
  305.     <content>
  306.         <layer>background</layer>
  307.         <id>4</id>
  308.         <text>Your Volume:Your Folder:Your File</text>
  309.     </content>
  310.     <content>
  311.         <layer>background</layer>
  312.         <id>5</id>
  313.         <text>Timed Call Back</text>
  314.     </content>
  315.     <content>
  316.         <layer>card</layer>
  317.         <id>8</id>
  318.         <text>You can specify a handler to be called when a certain time is reached. This example calls the handler ‚Äúintermission‚Äù when the movie reaches the half way point.</text>
  319.     </content>
  320.     <name>Timed Call Back</name>
  321.     <script>on intermission w
  322. global currWindow,halfTime
  323. if there is a window currwindow then
  324. send pause to window currwindow
  325. set currTime of window currwindow to halfTime
  326. set loc of msg window to 50,300
  327. put "HALFTIME INTERMISSION"
  328. repeat with i = 1 to 60
  329. put "  " before msg
  330. wait 2
  331. end repeat
  332. send play to window currwindow
  333. end if
  334. hide msg
  335. end intermission
  336.  
  337. on closeCard
  338. global currwindow
  339. if there is a window currwindow then close window currwindow
  340. pass CloseCard
  341. end closecard
  342. </script>
  343. </card>
  344.  
  345.  
  346. card_10765.xml
  347. <?xml version="1.0" encoding="utf-8" ?>
  348. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  349. <card>
  350.     <id>10765</id>
  351.     <filler1>0</filler1>
  352.     <bitmap>BMAP_11201.pbm</bitmap>
  353.     <cantDelete> <false /> </cantDelete>
  354.     <showPict> <true /> </showPict>
  355.     <dontSearch> <false /> </dontSearch>
  356.     <owner>2723</owner>
  357.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  358.     <part>
  359.         <id>1</id>
  360.         <type>button</type>
  361.         <visible> <true /> </visible>
  362.         <reserved5> 0 </reserved5>
  363.         <reserved4> 0 </reserved4>
  364.         <reserved3> 0 </reserved3>
  365.         <reserved2> 0 </reserved2>
  366.         <reserved1> 0 </reserved1>
  367.         <enabled> <true /> </enabled>
  368.         <rect>
  369.             <left>89</left>
  370.             <top>336</top>
  371.             <right>225</right>
  372.             <bottom>358</bottom>
  373.         </rect>
  374.         <style>roundrect</style>
  375.         <showName> <true /> </showName>
  376.         <highlight> <false /> </highlight>
  377.         <autoHighlight> <true /> </autoHighlight>
  378.         <sharedHighlight> <true /> </sharedHighlight>
  379.         <family>0</family>
  380.         <titleWidth>0</titleWidth>
  381.         <icon>0</icon>
  382.         <textAlign>center</textAlign>
  383.         <font>Chicago</font>
  384.         <textSize>12</textSize>
  385.         <textStyle>plain</textStyle>
  386.         <name>Click here first</name>
  387.         <script>on mouseUp
  388. global currWindow
  389.  
  390. if there is a window currWindow then close window currWindow
  391. QTMovie OpenMovie, windoid, bg field fileName, the topLeft of btn "here", loop, nocontroller, mute
  392. get the result
  393. if "Error" is in it then
  394. answer it
  395. exit mouseUp
  396. end if
  397.  
  398. put ExtractFileName(bg field fileName) into currWindow
  399.  
  400. set mouseDownMsg of window currWindow to ToggleController
  401. end mouseUp</script>
  402.     </part>
  403.     <part>
  404.         <id>5</id>
  405.         <type>field</type>
  406.         <visible> <false /> </visible>
  407.         <dontWrap> <false /> </dontWrap>
  408.         <dontSearch> <false /> </dontSearch>
  409.         <sharedText> <false /> </sharedText>
  410.         <fixedLineHeight> <false /> </fixedLineHeight>
  411.         <autoTab> <false /> </autoTab>
  412.         <lockText> <true /> </lockText>
  413.         <rect>
  414.             <left>8</left>
  415.             <top>55</top>
  416.             <right>212</right>
  417.             <bottom>320</bottom>
  418.         </rect>
  419.         <style>shadow</style>
  420.         <autoSelect> <false /> </autoSelect>
  421.         <showLines> <false /> </showLines>
  422.         <wideMargins> <false /> </wideMargins>
  423.         <multipleLines> <false /> </multipleLines>
  424.         <reservedFamily> 0 </reservedFamily>
  425.         <titleWidth>0</titleWidth>
  426.         <icon>0</icon>
  427.         <textAlign>left</textAlign>
  428.         <font>Palatino</font>
  429.         <textSize>18</textSize>
  430.         <textStyle>plain</textStyle>
  431.         <textHeight>24</textHeight>
  432.         <name>help text</name>
  433.         <script>on mouseUp
  434. hide me
  435. end mouseUp</script>
  436.     </part>
  437.     <part>
  438.         <id>6</id>
  439.         <type>button</type>
  440.         <visible> <true /> </visible>
  441.         <reserved5> 0 </reserved5>
  442.         <reserved4> 0 </reserved4>
  443.         <reserved3> 0 </reserved3>
  444.         <reserved2> 0 </reserved2>
  445.         <reserved1> 0 </reserved1>
  446.         <enabled> <true /> </enabled>
  447.         <rect>
  448.             <left>216</left>
  449.             <top>93</top>
  450.             <right>264</right>
  451.             <bottom>133</bottom>
  452.         </rect>
  453.         <style>transparent</style>
  454.         <showName> <true /> </showName>
  455.         <highlight> <true /> </highlight>
  456.         <autoHighlight> <false /> </autoHighlight>
  457.         <sharedHighlight> <true /> </sharedHighlight>
  458.         <family>0</family>
  459.         <titleWidth>0</titleWidth>
  460.         <icon>0</icon>
  461.         <textAlign>center</textAlign>
  462.         <font>Chicago</font>
  463.         <textSize>12</textSize>
  464.         <textStyle>plain</textStyle>
  465.         <name>here</name>
  466.         <script>on mouseDown
  467. put the clickLoc into myClick
  468. put the loc of me into origLoc
  469. put item 1 of origLoc into origX
  470. put item 2 of origLoc into origY
  471. put item 1 of myClick into clickX
  472. put item 2 of myClick into clickY
  473. repeat while the mouse is down
  474. set loc of me to Min(Max(0,origX - (clickX - the mouseH)),width of this card),¬¨
  475. Min(Max(0, origY - (clickY - the mouseV)), height of this card)
  476. end repeat
  477. end mouseDown</script>
  478.     </part>
  479.     <content>
  480.         <layer>background</layer>
  481.         <id>4</id>
  482.         <text>Your Volume:Your Folder:Your File</text>
  483.     </content>
  484.     <content>
  485.         <layer>background</layer>
  486.         <id>5</id>
  487.         <text>MouseDown Callback</text>
  488.     </content>
  489.     <content>
  490.         <layer>card</layer>
  491.         <id>5</id>
  492.         <text>You can specify a handler in your card script to be called whenever the mouse is clicked in the movie portion of the window. This example hides or shows the movie controller if the cmdKey is pressed.</text>
  493.     </content>
  494.     <name>MouseDown Callback</name>
  495.     <script>on ToggleController pt,movieTime,wName
  496. -- This is the mouse down call back routine that is set up
  497. -- in the "Click Here First button" on this card.
  498. -- There are three parameters passed to this routine,
  499. -- but we only use the third one for this example. Those parameters
  500. -- are the mousePoint, the movie time of the click, and the name of
  501. -- the movie window clicked in.
  502.  
  503. if the commandKey is down then
  504. if hasController of window wName then
  505. send hidecontroller to window wName
  506. else
  507. send showcontroller to window wName
  508. end if
  509. else
  510. -- this allows the mouse down to be processed by the movie controller
  511. send PassMouseDown to window wName
  512. end if
  513. end ToggleController
  514.  
  515. on closeCard
  516. global currWindow
  517. if there is a window currWindow then
  518. close window currWindow
  519. end if
  520. pass CloseCard
  521. end closeCard
  522. </script>
  523. </card>
  524.  
  525.  
  526. card_6566.xml
  527. <?xml version="1.0" encoding="utf-8" ?>
  528. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  529. <card>
  530.     <id>6566</id>
  531.     <filler1>0</filler1>
  532.     <cantDelete> <false /> </cantDelete>
  533.     <showPict> <true /> </showPict>
  534.     <dontSearch> <false /> </dontSearch>
  535.     <owner>2723</owner>
  536.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  537.     <part>
  538.         <id>1</id>
  539.         <type>button</type>
  540.         <visible> <true /> </visible>
  541.         <reserved5> 0 </reserved5>
  542.         <reserved4> 0 </reserved4>
  543.         <reserved3> 0 </reserved3>
  544.         <reserved2> 0 </reserved2>
  545.         <reserved1> 0 </reserved1>
  546.         <enabled> <true /> </enabled>
  547.         <rect>
  548.             <left>4</left>
  549.             <top>292</top>
  550.             <right>85</right>
  551.             <bottom>312</bottom>
  552.         </rect>
  553.         <style>shadow</style>
  554.         <showName> <true /> </showName>
  555.         <highlight> <false /> </highlight>
  556.         <autoHighlight> <true /> </autoHighlight>
  557.         <sharedHighlight> <true /> </sharedHighlight>
  558.         <family>0</family>
  559.         <titleWidth>0</titleWidth>
  560.         <icon>0</icon>
  561.         <textAlign>center</textAlign>
  562.         <font>Chicago</font>
  563.         <textSize>12</textSize>
  564.         <textStyle>plain</textStyle>
  565.         <name>Pick A File</name>
  566.         <script>on mouseUp
  567. answer file "Pick a Movie File:" of type "MooV"
  568. if it is not empty then put it into cd field firstfilename
  569. end mouseup</script>
  570.     </part>
  571.     <part>
  572.         <id>2</id>
  573.         <type>field</type>
  574.         <visible> <true /> </visible>
  575.         <dontWrap> <false /> </dontWrap>
  576.         <dontSearch> <false /> </dontSearch>
  577.         <sharedText> <false /> </sharedText>
  578.         <fixedLineHeight> <false /> </fixedLineHeight>
  579.         <autoTab> <false /> </autoTab>
  580.         <lockText> <false /> </lockText>
  581.         <rect>
  582.             <left>4</left>
  583.             <top>314</top>
  584.             <right>410</right>
  585.             <bottom>336</bottom>
  586.         </rect>
  587.         <style>rectangle</style>
  588.         <autoSelect> <false /> </autoSelect>
  589.         <showLines> <false /> </showLines>
  590.         <wideMargins> <false /> </wideMargins>
  591.         <multipleLines> <false /> </multipleLines>
  592.         <reservedFamily> 0 </reservedFamily>
  593.         <titleWidth>0</titleWidth>
  594.         <icon>0</icon>
  595.         <textAlign>left</textAlign>
  596.         <font>Palatino</font>
  597.         <textSize>12</textSize>
  598.         <textStyle>plain</textStyle>
  599.         <textHeight>16</textHeight>
  600.         <name>firstfileName</name>
  601.         <script></script>
  602.     </part>
  603.     <part>
  604.         <id>3</id>
  605.         <type>button</type>
  606.         <visible> <true /> </visible>
  607.         <reserved5> 0 </reserved5>
  608.         <reserved4> 0 </reserved4>
  609.         <reserved3> 0 </reserved3>
  610.         <reserved2> 0 </reserved2>
  611.         <reserved1> 0 </reserved1>
  612.         <enabled> <true /> </enabled>
  613.         <rect>
  614.             <left>131</left>
  615.             <top>265</top>
  616.             <right>235</right>
  617.             <bottom>287</bottom>
  618.         </rect>
  619.         <style>roundrect</style>
  620.         <showName> <true /> </showName>
  621.         <highlight> <false /> </highlight>
  622.         <autoHighlight> <true /> </autoHighlight>
  623.         <sharedHighlight> <true /> </sharedHighlight>
  624.         <family>0</family>
  625.         <titleWidth>0</titleWidth>
  626.         <icon>0</icon>
  627.         <textAlign>center</textAlign>
  628.         <font>Chicago</font>
  629.         <textSize>12</textSize>
  630.         <textStyle>plain</textStyle>
  631.         <name>Play First File</name>
  632.         <script>on mouseUp
  633. if there is a window "The Movie" then
  634. set newMovieFile of window "The Movie" to cd field firstfilename
  635. else
  636.  
  637. QTMovie OpenMovie,document,cd field firstfilename,¬¨
  638. the topLeft of btn here, loop
  639. if the result is not empty then
  640. answer the result
  641. exit mouseUp
  642. end if
  643.  
  644. Set windowname of window ExtractFileName(cd field firstfilename) ¬¨
  645. to "The Movie"
  646. end if
  647. end mouseUp</script>
  648.     </part>
  649.     <part>
  650.         <id>4</id>
  651.         <type>button</type>
  652.         <visible> <true /> </visible>
  653.         <reserved5> 0 </reserved5>
  654.         <reserved4> 0 </reserved4>
  655.         <reserved3> 0 </reserved3>
  656.         <reserved2> 0 </reserved2>
  657.         <reserved1> 0 </reserved1>
  658.         <enabled> <true /> </enabled>
  659.         <rect>
  660.             <left>267</left>
  661.             <top>263</top>
  662.             <right>437</right>
  663.             <bottom>285</bottom>
  664.         </rect>
  665.         <style>roundrect</style>
  666.         <showName> <true /> </showName>
  667.         <highlight> <false /> </highlight>
  668.         <autoHighlight> <true /> </autoHighlight>
  669.         <sharedHighlight> <true /> </sharedHighlight>
  670.         <family>0</family>
  671.         <titleWidth>0</titleWidth>
  672.         <icon>0</icon>
  673.         <textAlign>center</textAlign>
  674.         <font>Chicago</font>
  675.         <textSize>12</textSize>
  676.         <textStyle>plain</textStyle>
  677.         <name>Replace It with Second</name>
  678.         <script>on mouseUp
  679. if there is a window "The Movie" then
  680. set newMovieFile of window "The Movie" to field fileName
  681. end if
  682. end mouseUp</script>
  683.     </part>
  684.     <part>
  685.         <id>6</id>
  686.         <type>button</type>
  687.         <visible> <true /> </visible>
  688.         <reserved5> 0 </reserved5>
  689.         <reserved4> 0 </reserved4>
  690.         <reserved3> 0 </reserved3>
  691.         <reserved2> 0 </reserved2>
  692.         <reserved1> 0 </reserved1>
  693.         <enabled> <true /> </enabled>
  694.         <rect>
  695.             <left>201</left>
  696.             <top>62</top>
  697.             <right>250</right>
  698.             <bottom>100</bottom>
  699.         </rect>
  700.         <style>transparent</style>
  701.         <showName> <true /> </showName>
  702.         <highlight> <true /> </highlight>
  703.         <autoHighlight> <false /> </autoHighlight>
  704.         <sharedHighlight> <true /> </sharedHighlight>
  705.         <family>0</family>
  706.         <titleWidth>0</titleWidth>
  707.         <icon>0</icon>
  708.         <textAlign>center</textAlign>
  709.         <font>Chicago</font>
  710.         <textSize>12</textSize>
  711.         <textStyle>plain</textStyle>
  712.         <name>here</name>
  713.         <script>on mouseDown
  714. put the clickLoc into myClick
  715. put the loc of me into origLoc
  716. put item 1 of origLoc into origX
  717. put item 2 of origLoc into origY
  718. put item 1 of myClick into clickX
  719. put item 2 of myClick into clickY
  720. repeat while the mouse is down
  721. set loc of me to Min(Max(0,origX - (clickX - the mouseH)),width of this card),¬¨
  722. Min(Max(0, origY - (clickY - the mouseV)), height of this card)
  723. end repeat
  724. end mouseDown</script>
  725.     </part>
  726.     <part>
  727.         <id>7</id>
  728.         <type>field</type>
  729.         <visible> <false /> </visible>
  730.         <dontWrap> <false /> </dontWrap>
  731.         <dontSearch> <false /> </dontSearch>
  732.         <sharedText> <false /> </sharedText>
  733.         <fixedLineHeight> <false /> </fixedLineHeight>
  734.         <autoTab> <false /> </autoTab>
  735.         <lockText> <true /> </lockText>
  736.         <rect>
  737.             <left>2</left>
  738.             <top>62</top>
  739.             <right>192</right>
  740.             <bottom>258</bottom>
  741.         </rect>
  742.         <style>shadow</style>
  743.         <autoSelect> <false /> </autoSelect>
  744.         <showLines> <false /> </showLines>
  745.         <wideMargins> <false /> </wideMargins>
  746.         <multipleLines> <false /> </multipleLines>
  747.         <reservedFamily> 0 </reservedFamily>
  748.         <titleWidth>0</titleWidth>
  749.         <icon>0</icon>
  750.         <textAlign>left</textAlign>
  751.         <font>Palatino</font>
  752.         <textSize>18</textSize>
  753.         <textStyle>plain</textStyle>
  754.         <textHeight>24</textHeight>
  755.         <name>help text</name>
  756.         <script>on mouseUp
  757. hide me
  758. end mouseUp</script>
  759.     </part>
  760.     <content>
  761.         <layer>card</layer>
  762.         <id>2</id>
  763.         <text>Your Volume:Your Folder:First File</text>
  764.     </content>
  765.     <content>
  766.         <layer>background</layer>
  767.         <id>4</id>
  768.         <text>Your Volume:Your Folder:Your File</text>
  769.     </content>
  770.     <content>
  771.         <layer>background</layer>
  772.         <id>5</id>
  773.         <text>Replace a Movie</text>
  774.     </content>
  775.     <content>
  776.         <layer>card</layer>
  777.         <id>7</id>
  778.         <text>If you want to show another movie without having to close one window and open another, use the newMovieFile property.</text>
  779.     </content>
  780.     <name>Replace a Movie</name>
  781.     <script>on closeCard
  782. if there is a window "the movie" then close window "the movie"
  783. pass CloseCard
  784. end closeCard
  785.  
  786. on primeCard
  787. put  "Your Volume:Your Folder:First File" into cd field firstfilename of card "replace a movie"
  788. pass primeCard
  789. end primeCard</script>
  790. </card>
  791.  
  792.  
  793. card_4359.xml
  794. <?xml version="1.0" encoding="utf-8" ?>
  795. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  796. <card>
  797.     <id>4359</id>
  798.     <filler1>0</filler1>
  799.     <bitmap>BMAP_4848.pbm</bitmap>
  800.     <cantDelete> <false /> </cantDelete>
  801.     <showPict> <true /> </showPict>
  802.     <dontSearch> <false /> </dontSearch>
  803.     <owner>2723</owner>
  804.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  805.     <part>
  806.         <id>4</id>
  807.         <type>button</type>
  808.         <visible> <true /> </visible>
  809.         <reserved5> 0 </reserved5>
  810.         <reserved4> 0 </reserved4>
  811.         <reserved3> 0 </reserved3>
  812.         <reserved2> 0 </reserved2>
  813.         <reserved1> 0 </reserved1>
  814.         <enabled> <true /> </enabled>
  815.         <rect>
  816.             <left>90</left>
  817.             <top>336</top>
  818.             <right>226</right>
  819.             <bottom>358</bottom>
  820.         </rect>
  821.         <style>roundrect</style>
  822.         <showName> <true /> </showName>
  823.         <highlight> <false /> </highlight>
  824.         <autoHighlight> <true /> </autoHighlight>
  825.         <sharedHighlight> <true /> </sharedHighlight>
  826.         <family>0</family>
  827.         <titleWidth>0</titleWidth>
  828.         <icon>0</icon>
  829.         <textAlign>center</textAlign>
  830.         <font>Chicago</font>
  831.         <textSize>12</textSize>
  832.         <textStyle>plain</textStyle>
  833.         <name>Click here first</name>
  834.         <script>on mouseUp
  835. global currWindow
  836. if there is a window currWindow then close window currWindow
  837. set topLeft of btn inner to topLeft of btn outer
  838.  
  839. put the rect of btn view into clipR
  840. put clipR into bigR
  841. -- double the size of the view rect
  842. put item 1 of bigR + 2*(item 3 of bigR - item 1 of bigR) into item 3 of bigR
  843. put item 2 of bigR + 2*(item 4 of bigR - item 2 of bigR) into item 4 of bigR
  844.  
  845. QTMovie OpenMovie, Plain, bg field fileName, bigR, loop, clipTo, clipR, nocontroller
  846. get the result
  847. if "Error" is in it then
  848. answer it
  849. exit mouseUp
  850. end if
  851.  
  852. put ExtractFileName(bg field fileName) into currWindow
  853. end mouseUp</script>
  854.     </part>
  855.     <part>
  856.         <id>5</id>
  857.         <type>button</type>
  858.         <visible> <true /> </visible>
  859.         <reserved5> 0 </reserved5>
  860.         <reserved4> 0 </reserved4>
  861.         <reserved3> 0 </reserved3>
  862.         <reserved2> 0 </reserved2>
  863.         <reserved1> 0 </reserved1>
  864.         <enabled> <true /> </enabled>
  865.         <rect>
  866.             <left>94</left>
  867.             <top>91</top>
  868.             <right>334</right>
  869.             <bottom>271</bottom>
  870.         </rect>
  871.         <style>rectangle</style>
  872.         <showName> <false /> </showName>
  873.         <highlight> <false /> </highlight>
  874.         <autoHighlight> <false /> </autoHighlight>
  875.         <sharedHighlight> <true /> </sharedHighlight>
  876.         <family>0</family>
  877.         <titleWidth>0</titleWidth>
  878.         <icon>0</icon>
  879.         <textAlign>center</textAlign>
  880.         <font>Chicago</font>
  881.         <textSize>12</textSize>
  882.         <textStyle>plain</textStyle>
  883.         <name>view</name>
  884.         <script></script>
  885.     </part>
  886.     <part>
  887.         <id>6</id>
  888.         <type>button</type>
  889.         <visible> <true /> </visible>
  890.         <reserved5> 0 </reserved5>
  891.         <reserved4> 0 </reserved4>
  892.         <reserved3> 0 </reserved3>
  893.         <reserved2> 0 </reserved2>
  894.         <reserved1> 0 </reserved1>
  895.         <enabled> <true /> </enabled>
  896.         <rect>
  897.             <left>228</left>
  898.             <top>336</top>
  899.             <right>342</right>
  900.             <bottom>358</bottom>
  901.         </rect>
  902.         <style>roundrect</style>
  903.         <showName> <true /> </showName>
  904.         <highlight> <false /> </highlight>
  905.         <autoHighlight> <true /> </autoHighlight>
  906.         <sharedHighlight> <true /> </sharedHighlight>
  907.         <family>0</family>
  908.         <titleWidth>0</titleWidth>
  909.         <icon>0</icon>
  910.         <textAlign>center</textAlign>
  911.         <font>Chicago</font>
  912.         <textSize>12</textSize>
  913.         <textStyle>plain</textStyle>
  914.         <name>Close Movie</name>
  915.         <script>on mouseUp
  916. global currWindow
  917. if there is a window currWindow then close window currWindow
  918. end mouseUp</script>
  919.     </part>
  920.     <part>
  921.         <id>9</id>
  922.         <type>button</type>
  923.         <visible> <true /> </visible>
  924.         <reserved5> 0 </reserved5>
  925.         <reserved4> 0 </reserved4>
  926.         <reserved3> 0 </reserved3>
  927.         <reserved2> 0 </reserved2>
  928.         <reserved1> 0 </reserved1>
  929.         <enabled> <true /> </enabled>
  930.         <rect>
  931.             <left>445</left>
  932.             <top>280</top>
  933.             <right>525</right>
  934.             <bottom>340</bottom>
  935.         </rect>
  936.         <style>transparent</style>
  937.         <showName> <false /> </showName>
  938.         <highlight> <false /> </highlight>
  939.         <autoHighlight> <false /> </autoHighlight>
  940.         <sharedHighlight> <true /> </sharedHighlight>
  941.         <family>0</family>
  942.         <titleWidth>0</titleWidth>
  943.         <icon>0</icon>
  944.         <textAlign>center</textAlign>
  945.         <font>Chicago</font>
  946.         <textSize>12</textSize>
  947.         <textStyle>plain</textStyle>
  948.         <name>outer</name>
  949.         <script></script>
  950.     </part>
  951.     <part>
  952.         <id>10</id>
  953.         <type>button</type>
  954.         <visible> <true /> </visible>
  955.         <reserved5> 0 </reserved5>
  956.         <reserved4> 0 </reserved4>
  957.         <reserved3> 0 </reserved3>
  958.         <reserved2> 0 </reserved2>
  959.         <reserved1> 0 </reserved1>
  960.         <enabled> <true /> </enabled>
  961.         <rect>
  962.             <left>445</left>
  963.             <top>280</top>
  964.             <right>485</right>
  965.             <bottom>310</bottom>
  966.         </rect>
  967.         <style>rectangle</style>
  968.         <showName> <false /> </showName>
  969.         <highlight> <false /> </highlight>
  970.         <autoHighlight> <false /> </autoHighlight>
  971.         <sharedHighlight> <true /> </sharedHighlight>
  972.         <family>0</family>
  973.         <titleWidth>0</titleWidth>
  974.         <icon>0</icon>
  975.         <textAlign>center</textAlign>
  976.         <font>Geneva</font>
  977.         <textSize>9</textSize>
  978.         <textStyle>plain</textStyle>
  979.         <name>inner</name>
  980.         <script>on mouseDown
  981. -- This script drags this small button about, pinning it to the rect
  982. -- of button "outer". It resets the "movieLoc" of the movie window
  983. -- which adjusts the location of the movie within its window in proportion
  984. -- to the position of this inner button within the outer button
  985.  
  986. put the clickLoc into startLoc
  987. put the loc of me into origLoc
  988.  
  989. put the right of btn outer - width of me / 2 into maxX
  990. put the left of btn outer + width of me / 2 into minX
  991. put the bottom of btn outer - height of me / 2 into maxY
  992. put the top of btn outer + height of me / 2 into minY
  993.  
  994. repeat until the mouse is up
  995. get the mouseLoc
  996.  
  997. put item 1 of it - item 1 of startLoc into dX
  998. put item 2 of it - item 2 of startLoc into dY
  999.  
  1000. put item 1 of origLoc + dX into newX
  1001. put item 2 of origLoc + dY into newY
  1002.  
  1003. -- here's the pinning
  1004. set loc of me to min(max(minX, newX), maxX), min(max(minY, newY), maxY)
  1005.  
  1006. put topLeft of me into innerPt
  1007. put topLeft of btn outer into outerPt
  1008.  
  1009. put -(item 1 of innerPt - item 1 of outerPt)/¬¨
  1010. width of btn outer * width of btn view * 2¬¨
  1011. into item 1 of newMLoc
  1012.  
  1013. put -(item 2 of innerPt - item 2 of outerPt)/¬¨
  1014. height of btn outer * height of btn view * 2¬¨
  1015. into item 2 of newMLoc
  1016.  
  1017. global currWindow
  1018. if there is a window currWindow then set movieLoc of window currWindow to newMLoc
  1019. end repeat
  1020. end mouseDown
  1021.  
  1022. </script>
  1023.     </part>
  1024.     <part>
  1025.         <id>13</id>
  1026.         <type>field</type>
  1027.         <visible> <false /> </visible>
  1028.         <dontWrap> <false /> </dontWrap>
  1029.         <dontSearch> <false /> </dontSearch>
  1030.         <sharedText> <false /> </sharedText>
  1031.         <fixedLineHeight> <false /> </fixedLineHeight>
  1032.         <autoTab> <false /> </autoTab>
  1033.         <lockText> <true /> </lockText>
  1034.         <rect>
  1035.             <left>340</left>
  1036.             <top>43</top>
  1037.             <right>573</right>
  1038.             <bottom>249</bottom>
  1039.         </rect>
  1040.         <style>shadow</style>
  1041.         <autoSelect> <false /> </autoSelect>
  1042.         <showLines> <false /> </showLines>
  1043.         <wideMargins> <false /> </wideMargins>
  1044.         <multipleLines> <false /> </multipleLines>
  1045.         <reservedFamily> 0 </reservedFamily>
  1046.         <titleWidth>0</titleWidth>
  1047.         <icon>0</icon>
  1048.         <textAlign>left</textAlign>
  1049.         <font>Palatino</font>
  1050.         <textSize>18</textSize>
  1051.         <textStyle>plain</textStyle>
  1052.         <textHeight>24</textHeight>
  1053.         <name>help text</name>
  1054.         <script>on mouseUp
  1055. hide me
  1056. end mouseUp</script>
  1057.     </part>
  1058.     <content>
  1059.         <layer>background</layer>
  1060.         <id>4</id>
  1061.         <text>Your Volume:Your Folder:Your File</text>
  1062.     </content>
  1063.     <content>
  1064.         <layer>background</layer>
  1065.         <id>5</id>
  1066.         <text>Panning a Movie</text>
  1067.     </content>
  1068.     <content>
  1069.         <layer>card</layer>
  1070.         <id>13</id>
  1071.         <text>This demonstrates an interesting way you can scroll a movie. It sets the initial size of the movie very large and sets the window size smaller (using the clipTo option on OpenMovie). The scrolling is done by setting the movieLoc property.
  1072.  
  1073. </text>
  1074.     </content>
  1075.     <name>Panning a Movie</name>
  1076.     <script>on closeCard
  1077. global currWindow
  1078. if there is a window currWindow then close window currWindow
  1079. pass CloseCard
  1080. end closeCard
  1081.  
  1082. on primeCard
  1083. set topLeft of btn inner to topLeft of btn outer
  1084. pass primeCard
  1085. end primeCard
  1086. </script>
  1087. </card>
  1088.  
  1089.  
  1090. card_4954.xml
  1091. <?xml version="1.0" encoding="utf-8" ?>
  1092. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1093. <card>
  1094.     <id>4954</id>
  1095.     <filler1>0</filler1>
  1096.     <bitmap>BMAP_5257.pbm</bitmap>
  1097.     <cantDelete> <false /> </cantDelete>
  1098.     <showPict> <true /> </showPict>
  1099.     <dontSearch> <false /> </dontSearch>
  1100.     <owner>2723</owner>
  1101.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  1102.     <part>
  1103.         <id>1</id>
  1104.         <type>button</type>
  1105.         <visible> <true /> </visible>
  1106.         <reserved5> 0 </reserved5>
  1107.         <reserved4> 0 </reserved4>
  1108.         <reserved3> 0 </reserved3>
  1109.         <reserved2> 0 </reserved2>
  1110.         <reserved1> 0 </reserved1>
  1111.         <enabled> <true /> </enabled>
  1112.         <rect>
  1113.             <left>209</left>
  1114.             <top>178</top>
  1115.             <right>380</right>
  1116.             <bottom>298</bottom>
  1117.         </rect>
  1118.         <style>transparent</style>
  1119.         <showName> <false /> </showName>
  1120.         <highlight> <false /> </highlight>
  1121.         <autoHighlight> <false /> </autoHighlight>
  1122.         <sharedHighlight> <true /> </sharedHighlight>
  1123.         <family>0</family>
  1124.         <titleWidth>0</titleWidth>
  1125.         <icon>0</icon>
  1126.         <textAlign>center</textAlign>
  1127.         <font>Chicago</font>
  1128.         <textSize>12</textSize>
  1129.         <textStyle>plain</textStyle>
  1130.         <name>France</name>
  1131.         <script></script>
  1132.     </part>
  1133.     <part>
  1134.         <id>4</id>
  1135.         <type>button</type>
  1136.         <visible> <true /> </visible>
  1137.         <reserved5> 0 </reserved5>
  1138.         <reserved4> 0 </reserved4>
  1139.         <reserved3> 0 </reserved3>
  1140.         <reserved2> 0 </reserved2>
  1141.         <reserved1> 0 </reserved1>
  1142.         <enabled> <true /> </enabled>
  1143.         <rect>
  1144.             <left>7</left>
  1145.             <top>275</top>
  1146.             <right>121</right>
  1147.             <bottom>297</bottom>
  1148.         </rect>
  1149.         <style>roundrect</style>
  1150.         <showName> <true /> </showName>
  1151.         <highlight> <false /> </highlight>
  1152.         <autoHighlight> <true /> </autoHighlight>
  1153.         <sharedHighlight> <true /> </sharedHighlight>
  1154.         <family>0</family>
  1155.         <titleWidth>0</titleWidth>
  1156.         <icon>0</icon>
  1157.         <textAlign>center</textAlign>
  1158.         <font>Chicago</font>
  1159.         <textSize>12</textSize>
  1160.         <textStyle>plain</textStyle>
  1161.         <name>Dispose Movie</name>
  1162.         <script>on mouseUp
  1163. DisposeVideo
  1164. end mouseUp</script>
  1165.     </part>
  1166.     <part>
  1167.         <id>7</id>
  1168.         <type>field</type>
  1169.         <visible> <true /> </visible>
  1170.         <dontWrap> <false /> </dontWrap>
  1171.         <dontSearch> <false /> </dontSearch>
  1172.         <sharedText> <false /> </sharedText>
  1173.         <fixedLineHeight> <false /> </fixedLineHeight>
  1174.         <autoTab> <false /> </autoTab>
  1175.         <lockText> <false /> </lockText>
  1176.         <rect>
  1177.             <left>165</left>
  1178.             <top>247</top>
  1179.             <right>235</right>
  1180.             <bottom>273</bottom>
  1181.         </rect>
  1182.         <style>transparent</style>
  1183.         <autoSelect> <false /> </autoSelect>
  1184.         <showLines> <false /> </showLines>
  1185.         <wideMargins> <false /> </wideMargins>
  1186.         <multipleLines> <false /> </multipleLines>
  1187.         <reservedFamily> 0 </reservedFamily>
  1188.         <titleWidth>0</titleWidth>
  1189.         <icon>0</icon>
  1190.         <textAlign>left</textAlign>
  1191.         <font>Zapf Chancery</font>
  1192.         <textSize>24</textSize>
  1193.         <textStyle>plain</textStyle>
  1194.         <textHeight>32</textHeight>
  1195.         <name>France</name>
  1196.         <script></script>
  1197.     </part>
  1198.     <part>
  1199.         <id>8</id>
  1200.         <type>button</type>
  1201.         <visible> <true /> </visible>
  1202.         <reserved5> 0 </reserved5>
  1203.         <reserved4> 0 </reserved4>
  1204.         <reserved3> 0 </reserved3>
  1205.         <reserved2> 0 </reserved2>
  1206.         <reserved1> 0 </reserved1>
  1207.         <enabled> <true /> </enabled>
  1208.         <rect>
  1209.             <left>7</left>
  1210.             <top>251</top>
  1211.             <right>114</right>
  1212.             <bottom>273</bottom>
  1213.         </rect>
  1214.         <style>roundrect</style>
  1215.         <showName> <true /> </showName>
  1216.         <highlight> <false /> </highlight>
  1217.         <autoHighlight> <true /> </autoHighlight>
  1218.         <sharedHighlight> <true /> </sharedHighlight>
  1219.         <family>0</family>
  1220.         <titleWidth>0</titleWidth>
  1221.         <icon>0</icon>
  1222.         <textAlign>center</textAlign>
  1223.         <font>Chicago</font>
  1224.         <textSize>12</textSize>
  1225.         <textStyle>plain</textStyle>
  1226.         <name>Direct Movie</name>
  1227.         <script>on mouseUp
  1228. PlayClippedMovie
  1229. end mouseUp
  1230. </script>
  1231.     </part>
  1232.     <part>
  1233.         <id>12</id>
  1234.         <type>button</type>
  1235.         <visible> <true /> </visible>
  1236.         <reserved5> 0 </reserved5>
  1237.         <reserved4> 0 </reserved4>
  1238.         <reserved3> 0 </reserved3>
  1239.         <reserved2> 0 </reserved2>
  1240.         <reserved1> 0 </reserved1>
  1241.         <enabled> <true /> </enabled>
  1242.         <rect>
  1243.             <left>453</left>
  1244.             <top>251</top>
  1245.             <right>560</right>
  1246.             <bottom>273</bottom>
  1247.         </rect>
  1248.         <style>roundrect</style>
  1249.         <showName> <true /> </showName>
  1250.         <highlight> <false /> </highlight>
  1251.         <autoHighlight> <true /> </autoHighlight>
  1252.         <sharedHighlight> <true /> </sharedHighlight>
  1253.         <family>0</family>
  1254.         <titleWidth>0</titleWidth>
  1255.         <icon>0</icon>
  1256.         <textAlign>center</textAlign>
  1257.         <font>Chicago</font>
  1258.         <textSize>12</textSize>
  1259.         <textStyle>plain</textStyle>
  1260.         <name>Window Movie</name>
  1261.         <script>on mouseUp
  1262. PlayClippedWindowMovie
  1263. end mouseUp
  1264. </script>
  1265.     </part>
  1266.     <part>
  1267.         <id>13</id>
  1268.         <type>button</type>
  1269.         <visible> <true /> </visible>
  1270.         <reserved5> 0 </reserved5>
  1271.         <reserved4> 0 </reserved4>
  1272.         <reserved3> 0 </reserved3>
  1273.         <reserved2> 0 </reserved2>
  1274.         <reserved1> 0 </reserved1>
  1275.         <enabled> <true /> </enabled>
  1276.         <rect>
  1277.             <left>446</left>
  1278.             <top>275</top>
  1279.             <right>560</right>
  1280.             <bottom>297</bottom>
  1281.         </rect>
  1282.         <style>roundrect</style>
  1283.         <showName> <true /> </showName>
  1284.         <highlight> <false /> </highlight>
  1285.         <autoHighlight> <true /> </autoHighlight>
  1286.         <sharedHighlight> <true /> </sharedHighlight>
  1287.         <family>0</family>
  1288.         <titleWidth>0</titleWidth>
  1289.         <icon>0</icon>
  1290.         <textAlign>center</textAlign>
  1291.         <font>Chicago</font>
  1292.         <textSize>12</textSize>
  1293.         <textStyle>plain</textStyle>
  1294.         <name>Close Window</name>
  1295.         <script>on mouseUp
  1296. global currWindow
  1297. if there is a window currWindow then
  1298. close window currwindow
  1299. end if
  1300. end mouseUp</script>
  1301.     </part>
  1302.     <part>
  1303.         <id>14</id>
  1304.         <type>button</type>
  1305.         <visible> <true /> </visible>
  1306.         <reserved5> 0 </reserved5>
  1307.         <reserved4> 0 </reserved4>
  1308.         <reserved3> 0 </reserved3>
  1309.         <reserved2> 0 </reserved2>
  1310.         <reserved1> 0 </reserved1>
  1311.         <enabled> <true /> </enabled>
  1312.         <rect>
  1313.             <left>408</left>
  1314.             <top>38</top>
  1315.             <right>535</right>
  1316.             <bottom>142</bottom>
  1317.         </rect>
  1318.         <style>rectangle</style>
  1319.         <showName> <false /> </showName>
  1320.         <highlight> <false /> </highlight>
  1321.         <autoHighlight> <false /> </autoHighlight>
  1322.         <sharedHighlight> <true /> </sharedHighlight>
  1323.         <family>0</family>
  1324.         <titleWidth>0</titleWidth>
  1325.         <icon>0</icon>
  1326.         <textAlign>center</textAlign>
  1327.         <font>Chicago</font>
  1328.         <textSize>12</textSize>
  1329.         <textStyle>plain</textStyle>
  1330.         <name>Hider</name>
  1331.         <script></script>
  1332.     </part>
  1333.     <part>
  1334.         <id>15</id>
  1335.         <type>button</type>
  1336.         <visible> <true /> </visible>
  1337.         <reserved5> 0 </reserved5>
  1338.         <reserved4> 0 </reserved4>
  1339.         <reserved3> 0 </reserved3>
  1340.         <reserved2> 0 </reserved2>
  1341.         <reserved1> 0 </reserved1>
  1342.         <enabled> <true /> </enabled>
  1343.         <rect>
  1344.             <left>443</left>
  1345.             <top>151</top>
  1346.             <right>563</right>
  1347.             <bottom>173</bottom>
  1348.         </rect>
  1349.         <style>roundrect</style>
  1350.         <showName> <true /> </showName>
  1351.         <highlight> <false /> </highlight>
  1352.         <autoHighlight> <true /> </autoHighlight>
  1353.         <sharedHighlight> <true /> </sharedHighlight>
  1354.         <family>0</family>
  1355.         <titleWidth>0</titleWidth>
  1356.         <icon>0</icon>
  1357.         <textAlign>center</textAlign>
  1358.         <font>Chicago</font>
  1359.         <textSize>12</textSize>
  1360.         <textStyle>plain</textStyle>
  1361.         <name>Window Movie 2</name>
  1362.         <script>on mouseUp
  1363. PlayClippedWindowMovie2
  1364. end mouseUp
  1365. </script>
  1366.     </part>
  1367.     <part>
  1368.         <id>9</id>
  1369.         <type>field</type>
  1370.         <visible> <false /> </visible>
  1371.         <dontWrap> <false /> </dontWrap>
  1372.         <dontSearch> <false /> </dontSearch>
  1373.         <sharedText> <false /> </sharedText>
  1374.         <fixedLineHeight> <false /> </fixedLineHeight>
  1375.         <autoTab> <false /> </autoTab>
  1376.         <lockText> <true /> </lockText>
  1377.         <rect>
  1378.             <left>3</left>
  1379.             <top>40</top>
  1380.             <right>401</right>
  1381.             <bottom>191</bottom>
  1382.         </rect>
  1383.         <style>shadow</style>
  1384.         <autoSelect> <false /> </autoSelect>
  1385.         <showLines> <false /> </showLines>
  1386.         <wideMargins> <false /> </wideMargins>
  1387.         <multipleLines> <false /> </multipleLines>
  1388.         <reservedFamily> 0 </reservedFamily>
  1389.         <titleWidth>0</titleWidth>
  1390.         <icon>0</icon>
  1391.         <textAlign>left</textAlign>
  1392.         <font>Palatino</font>
  1393.         <textSize>14</textSize>
  1394.         <textStyle>plain</textStyle>
  1395.         <textHeight>18</textHeight>
  1396.         <name>help text</name>
  1397.         <script>on mouseUp
  1398. hide me
  1399. end mouseUp</script>
  1400.     </part>
  1401.     <part>
  1402.         <id>16</id>
  1403.         <type>button</type>
  1404.         <visible> <true /> </visible>
  1405.         <reserved5> 0 </reserved5>
  1406.         <reserved4> 0 </reserved4>
  1407.         <reserved3> 0 </reserved3>
  1408.         <reserved2> 0 </reserved2>
  1409.         <reserved1> 0 </reserved1>
  1410.         <enabled> <true /> </enabled>
  1411.         <rect>
  1412.             <left>446</left>
  1413.             <top>175</top>
  1414.             <right>560</right>
  1415.             <bottom>197</bottom>
  1416.         </rect>
  1417.         <style>roundrect</style>
  1418.         <showName> <true /> </showName>
  1419.         <highlight> <false /> </highlight>
  1420.         <autoHighlight> <true /> </autoHighlight>
  1421.         <sharedHighlight> <true /> </sharedHighlight>
  1422.         <family>0</family>
  1423.         <titleWidth>0</titleWidth>
  1424.         <icon>0</icon>
  1425.         <textAlign>center</textAlign>
  1426.         <font>Chicago</font>
  1427.         <textSize>12</textSize>
  1428.         <textStyle>plain</textStyle>
  1429.         <name>Close Window</name>
  1430.         <script>on mouseUp
  1431. global currWindow
  1432. if there is a window currWindow then
  1433. close window currwindow
  1434. end if
  1435. end mouseUp</script>
  1436.     </part>
  1437.     <content>
  1438.         <layer>background</layer>
  1439.         <id>4</id>
  1440.         <text>Your Volume:Your Folder:Your File</text>
  1441.     </content>
  1442.     <content>
  1443.         <layer>background</layer>
  1444.         <id>5</id>
  1445.         <text>Clipped Movies</text>
  1446.     </content>
  1447.     <content>
  1448.         <layer>card</layer>
  1449.         <id>7</id>
  1450.         <text>France</text>
  1451.     </content>
  1452.     <content>
  1453.         <layer>card</layer>
  1454.         <id>9</id>
  1455.         <text>Using the BitMapClip property, you can show movies in arbitrary shapes. Just specify a rectangle about the shape you wish to show the movie in. (A transparent card button is handy for such things.) For the window movie, which uses the special MovieWDEF window type, you can cmd/click in the window to drag it around. The PasteBitMapClip command used by Window Movie 2, gets its bitmap from the clipboard, which the script copies there from a bitmap hidden behind the rectangular button to the right.</text>
  1456.     </content>
  1457.     <name>Clipped Movies</name>
  1458.     <script>on idle
  1459. global movieID
  1460. if movieID is not empty and movieID is a number then
  1461. QTMovie Direct,movieID,Idle
  1462. end if
  1463. end idle
  1464.  
  1465. on CloseCard
  1466. DisposeVideo
  1467. pass CloseCard
  1468. end CloseCard
  1469.  
  1470. on PlayClippedMovie
  1471. global movieID,currWindow
  1472.  
  1473. DisposeVideo -- in case one's already there
  1474. if there is a window currwindow then close window currwindow
  1475.  
  1476. QTMovie OpenMovie,Direct,bg field fileName,the rect of btn "france",¬¨
  1477. paused,invisible,loop
  1478.  
  1479. put the result into movieID
  1480. if "Error" is in movieID then
  1481. answer movieID
  1482. put empty into movieID
  1483. exit PlayClippedMovie
  1484. end if
  1485.  
  1486. -- if we don't hide the field, then the text will become part of
  1487. -- the bitmap
  1488. hide cd field france
  1489. QTMovie Direct,movieID,Set,BitMapClip,the rect of btn "france"
  1490. show cd field france
  1491. QTMovie Direct,movieID,Set,visible,true
  1492. QTMovie Direct,movieID,Play
  1493.  
  1494. end PlayClippedMovie
  1495.  
  1496.  
  1497. on PlayClippedWindowMovie
  1498. global movieID,currWindow
  1499.  
  1500. DisposeVideo -- in case one's already there
  1501. if there is a window currwindow then close window currwindow
  1502.  
  1503. QTMovie OpenMovie,MovieWDEF,bg field fileName,the rect of btn "france",¬¨
  1504. paused,invisible,loop,cmdKeyDraggable,noController,dontPaintWhite
  1505.  
  1506. get the result
  1507. if "Error" is in it then
  1508. answer it
  1509. exit PlayClippedWindowMovie
  1510. end if
  1511.  
  1512. put ExtractFileName(bg field filename) into currWindow
  1513. -- if we don't hide the field, then the text will become part of
  1514. -- the bitmap
  1515. hide cd field france
  1516. set BitMapClip of window currwindow to the rect of btn "france"
  1517. show cd field france
  1518.  
  1519. show window currWindow
  1520. send play to window currwindow
  1521. end PlayClippedWindowMovie
  1522.  
  1523. on PlayClippedWindowMovie2
  1524. global movieID,currWindow
  1525.  
  1526. DisposeVideo -- in case one's already there
  1527. if there is a window currwindow then close window currwindow
  1528.  
  1529. QTMovie OpenMovie,MovieWDEF,bg field fileName,the rect of btn "hider",¬¨
  1530. paused,invisible,loop,cmdKeyDraggable,noController,dontPaintWhite
  1531.  
  1532. get the result
  1533. if "Error" is in it then
  1534. answer it
  1535. exit PlayClippedWindowMovie2
  1536. end if
  1537.  
  1538. put ExtractFileName(bg field filename) into currWindow
  1539. set lockscreen to true
  1540. choose select tool
  1541. drag from topLeft of btn hider to botRight of btn hider
  1542. domenu copy picture
  1543. choose browse tool
  1544.  
  1545. send PasteBitMapClip to window currwindow
  1546.  
  1547. show window currWindow
  1548. send play to window currwindow
  1549. end PlayClippedWindowMovie2</script>
  1550. </card>
  1551.  
  1552.  
  1553. card_6049.xml
  1554. <?xml version="1.0" encoding="utf-8" ?>
  1555. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1556. <card>
  1557.     <id>6049</id>
  1558.     <filler1>0</filler1>
  1559.     <cantDelete> <false /> </cantDelete>
  1560.     <showPict> <true /> </showPict>
  1561.     <dontSearch> <false /> </dontSearch>
  1562.     <owner>2723</owner>
  1563.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  1564.     <part>
  1565.         <id>1</id>
  1566.         <type>button</type>
  1567.         <visible> <true /> </visible>
  1568.         <reserved5> 0 </reserved5>
  1569.         <reserved4> 0 </reserved4>
  1570.         <reserved3> 0 </reserved3>
  1571.         <reserved2> 0 </reserved2>
  1572.         <reserved1> 0 </reserved1>
  1573.         <enabled> <true /> </enabled>
  1574.         <rect>
  1575.             <left>92</left>
  1576.             <top>337</top>
  1577.             <right>184</right>
  1578.             <bottom>356</bottom>
  1579.         </rect>
  1580.         <style>roundrect</style>
  1581.         <showName> <true /> </showName>
  1582.         <highlight> <false /> </highlight>
  1583.         <autoHighlight> <true /> </autoHighlight>
  1584.         <sharedHighlight> <true /> </sharedHighlight>
  1585.         <family>0</family>
  1586.         <titleWidth>0</titleWidth>
  1587.         <icon>0</icon>
  1588.         <textAlign>center</textAlign>
  1589.         <font>Chicago</font>
  1590.         <textSize>12</textSize>
  1591.         <textStyle>plain</textStyle>
  1592.         <name>Click Here</name>
  1593.         <script>on mouseUp
  1594. global movieID
  1595.  
  1596. DisposeVideo
  1597. QTMovie OpenMovie, Direct, bg field fileName, the rect of btn startBtn--, mute
  1598. put the result into movieID
  1599. if "Error" is in movieID then
  1600. answer movieID
  1601. put empty into movieID
  1602. exit mouseUp
  1603. end if
  1604.  
  1605. -- Set pathStartTime and pathEndTime to only play a portion of a movie
  1606. -- The default is to show the whole movie.
  1607.  
  1608. -- QTMovie Direct,movieID,Set,pathStartTime,someTime
  1609. -- QTMovie Direct,movieID,Set,pathEndTime,someLaterTime
  1610. QTMovie Direct,movieID,Set,pathStartPt,the topLeft of btn startBtn
  1611. QTMovie Direct,movieID,Set,pathEndPt,the topLeft of btn endBtn
  1612. QTMovie Direct,movieID,Set,pathNumFrames,6
  1613. if the shiftkey is up then QTMovie Direct,movieID,Set,pathPlayFrames,true
  1614. QTMovie Direct,movieID,PlotPath
  1615. QTMovie Direct,movieID,Dispose
  1616. end mouseUp
  1617.  
  1618. </script>
  1619.     </part>
  1620.     <part>
  1621.         <id>2</id>
  1622.         <type>button</type>
  1623.         <visible> <true /> </visible>
  1624.         <reserved5> 0 </reserved5>
  1625.         <reserved4> 0 </reserved4>
  1626.         <reserved3> 0 </reserved3>
  1627.         <reserved2> 0 </reserved2>
  1628.         <reserved1> 0 </reserved1>
  1629.         <enabled> <true /> </enabled>
  1630.         <rect>
  1631.             <left>54</left>
  1632.             <top>242</top>
  1633.             <right>135</right>
  1634.             <bottom>300</bottom>
  1635.         </rect>
  1636.         <style>rectangle</style>
  1637.         <showName> <true /> </showName>
  1638.         <highlight> <false /> </highlight>
  1639.         <autoHighlight> <false /> </autoHighlight>
  1640.         <sharedHighlight> <true /> </sharedHighlight>
  1641.         <family>0</family>
  1642.         <titleWidth>0</titleWidth>
  1643.         <icon>0</icon>
  1644.         <textAlign>center</textAlign>
  1645.         <font>Chicago</font>
  1646.         <textSize>12</textSize>
  1647.         <textStyle>plain</textStyle>
  1648.         <name>startBtn</name>
  1649.         <script></script>
  1650.     </part>
  1651.     <part>
  1652.         <id>3</id>
  1653.         <type>button</type>
  1654.         <visible> <true /> </visible>
  1655.         <reserved5> 0 </reserved5>
  1656.         <reserved4> 0 </reserved4>
  1657.         <reserved3> 0 </reserved3>
  1658.         <reserved2> 0 </reserved2>
  1659.         <reserved1> 0 </reserved1>
  1660.         <enabled> <true /> </enabled>
  1661.         <rect>
  1662.             <left>448</left>
  1663.             <top>243</top>
  1664.             <right>520</right>
  1665.             <bottom>300</bottom>
  1666.         </rect>
  1667.         <style>rectangle</style>
  1668.         <showName> <true /> </showName>
  1669.         <highlight> <false /> </highlight>
  1670.         <autoHighlight> <false /> </autoHighlight>
  1671.         <sharedHighlight> <true /> </sharedHighlight>
  1672.         <family>0</family>
  1673.         <titleWidth>0</titleWidth>
  1674.         <icon>0</icon>
  1675.         <textAlign>center</textAlign>
  1676.         <font>Chicago</font>
  1677.         <textSize>12</textSize>
  1678.         <textStyle>plain</textStyle>
  1679.         <name>endBtn</name>
  1680.         <script></script>
  1681.     </part>
  1682.     <part>
  1683.         <id>5</id>
  1684.         <type>button</type>
  1685.         <visible> <true /> </visible>
  1686.         <reserved5> 0 </reserved5>
  1687.         <reserved4> 0 </reserved4>
  1688.         <reserved3> 0 </reserved3>
  1689.         <reserved2> 0 </reserved2>
  1690.         <reserved1> 0 </reserved1>
  1691.         <enabled> <true /> </enabled>
  1692.         <rect>
  1693.             <left>186</left>
  1694.             <top>337</top>
  1695.             <right>295</right>
  1696.             <bottom>356</bottom>
  1697.         </rect>
  1698.         <style>roundrect</style>
  1699.         <showName> <true /> </showName>
  1700.         <highlight> <false /> </highlight>
  1701.         <autoHighlight> <true /> </autoHighlight>
  1702.         <sharedHighlight> <true /> </sharedHighlight>
  1703.         <family>0</family>
  1704.         <titleWidth>0</titleWidth>
  1705.         <icon>0</icon>
  1706.         <textAlign>center</textAlign>
  1707.         <font>Chicago</font>
  1708.         <textSize>12</textSize>
  1709.         <textStyle>plain</textStyle>
  1710.         <name>Dispose Movie</name>
  1711.         <script>on mouseUp
  1712. DisposeVideo
  1713. end mouseUp</script>
  1714.     </part>
  1715.     <part>
  1716.         <id>6</id>
  1717.         <type>field</type>
  1718.         <visible> <false /> </visible>
  1719.         <dontWrap> <false /> </dontWrap>
  1720.         <dontSearch> <false /> </dontSearch>
  1721.         <sharedText> <false /> </sharedText>
  1722.         <fixedLineHeight> <false /> </fixedLineHeight>
  1723.         <autoTab> <false /> </autoTab>
  1724.         <lockText> <true /> </lockText>
  1725.         <rect>
  1726.             <left>3</left>
  1727.             <top>30</top>
  1728.             <right>318</right>
  1729.             <bottom>233</bottom>
  1730.         </rect>
  1731.         <style>shadow</style>
  1732.         <autoSelect> <false /> </autoSelect>
  1733.         <showLines> <false /> </showLines>
  1734.         <wideMargins> <false /> </wideMargins>
  1735.         <multipleLines> <false /> </multipleLines>
  1736.         <reservedFamily> 0 </reservedFamily>
  1737.         <titleWidth>0</titleWidth>
  1738.         <icon>0</icon>
  1739.         <textAlign>left</textAlign>
  1740.         <font>Palatino</font>
  1741.         <textSize>18</textSize>
  1742.         <textStyle>plain</textStyle>
  1743.         <textHeight>24</textHeight>
  1744.         <name>help text</name>
  1745.         <script>on mouseUp
  1746. hide me
  1747. end mouseUp</script>
  1748.     </part>
  1749.     <content>
  1750.         <layer>background</layer>
  1751.         <id>4</id>
  1752.         <text>Your Volume:Your Folder:Your File</text>
  1753.     </content>
  1754.     <content>
  1755.         <layer>background</layer>
  1756.         <id>5</id>
  1757.         <text>Splat Movie</text>
  1758.     </content>
  1759.     <content>
  1760.         <layer>card</layer>
  1761.         <id>6</id>
  1762.         <text>This is also an application of PlotPath. In this case the frames do not overlap and the movie is playing while it splats across the screen. If you hold down the shift key, then the movie will not be played. Works best with a short movie or short segment of a movie. See ‚ÄúClick here‚Äù button script to see how to splat a segment of the movie.</text>
  1763.     </content>
  1764.     <name>Splat Movie</name>
  1765.     <script>on idle
  1766. global movieID
  1767. if movieID is not empty and movieID is a number then
  1768. QTMovie Direct,movieID,Idle
  1769. end if
  1770. end idle
  1771.  
  1772. on CloseCard
  1773. DisposeVideo
  1774. pass CloseCard
  1775. end CloseCard
  1776.  
  1777. </script>
  1778. </card>
  1779.  
  1780.  
  1781. card_3809.xml
  1782. <?xml version="1.0" encoding="utf-8" ?>
  1783. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  1784. <card>
  1785.     <id>3809</id>
  1786.     <filler1>0</filler1>
  1787.     <bitmap>BMAP_3922.pbm</bitmap>
  1788.     <cantDelete> <false /> </cantDelete>
  1789.     <showPict> <true /> </showPict>
  1790.     <dontSearch> <false /> </dontSearch>
  1791.     <owner>2723</owner>
  1792.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  1793.     <part>
  1794.         <id>2</id>
  1795.         <type>button</type>
  1796.         <visible> <true /> </visible>
  1797.         <reserved5> 0 </reserved5>
  1798.         <reserved4> 0 </reserved4>
  1799.         <reserved3> 0 </reserved3>
  1800.         <reserved2> 0 </reserved2>
  1801.         <reserved1> 0 </reserved1>
  1802.         <enabled> <true /> </enabled>
  1803.         <rect>
  1804.             <left>71</left>
  1805.             <top>267</top>
  1806.             <right>131</right>
  1807.             <bottom>309</bottom>
  1808.         </rect>
  1809.         <style>rectangle</style>
  1810.         <showName> <true /> </showName>
  1811.         <highlight> <false /> </highlight>
  1812.         <autoHighlight> <false /> </autoHighlight>
  1813.         <sharedHighlight> <true /> </sharedHighlight>
  1814.         <family>0</family>
  1815.         <titleWidth>0</titleWidth>
  1816.         <icon>0</icon>
  1817.         <textAlign>center</textAlign>
  1818.         <font>Geneva</font>
  1819.         <textSize>9</textSize>
  1820.         <textStyle>plain</textStyle>
  1821.         <name>startBtn</name>
  1822.         <script></script>
  1823.     </part>
  1824.     <part>
  1825.         <id>3</id>
  1826.         <type>button</type>
  1827.         <visible> <true /> </visible>
  1828.         <reserved5> 0 </reserved5>
  1829.         <reserved4> 0 </reserved4>
  1830.         <reserved3> 0 </reserved3>
  1831.         <reserved2> 0 </reserved2>
  1832.         <reserved1> 0 </reserved1>
  1833.         <enabled> <true /> </enabled>
  1834.         <rect>
  1835.             <left>477</left>
  1836.             <top>267</top>
  1837.             <right>537</right>
  1838.             <bottom>309</bottom>
  1839.         </rect>
  1840.         <style>rectangle</style>
  1841.         <showName> <true /> </showName>
  1842.         <highlight> <false /> </highlight>
  1843.         <autoHighlight> <false /> </autoHighlight>
  1844.         <sharedHighlight> <true /> </sharedHighlight>
  1845.         <family>0</family>
  1846.         <titleWidth>0</titleWidth>
  1847.         <icon>0</icon>
  1848.         <textAlign>center</textAlign>
  1849.         <font>Geneva</font>
  1850.         <textSize>9</textSize>
  1851.         <textStyle>plain</textStyle>
  1852.         <name>endBtn</name>
  1853.         <script></script>
  1854.     </part>
  1855.     <part>
  1856.         <id>4</id>
  1857.         <type>button</type>
  1858.         <visible> <true /> </visible>
  1859.         <reserved5> 0 </reserved5>
  1860.         <reserved4> 0 </reserved4>
  1861.         <reserved3> 0 </reserved3>
  1862.         <reserved2> 0 </reserved2>
  1863.         <reserved1> 0 </reserved1>
  1864.         <enabled> <true /> </enabled>
  1865.         <rect>
  1866.             <left>88</left>
  1867.             <top>338</top>
  1868.             <right>233</right>
  1869.             <bottom>358</bottom>
  1870.         </rect>
  1871.         <style>roundrect</style>
  1872.         <showName> <true /> </showName>
  1873.         <highlight> <false /> </highlight>
  1874.         <autoHighlight> <true /> </autoHighlight>
  1875.         <sharedHighlight> <true /> </sharedHighlight>
  1876.         <family>0</family>
  1877.         <titleWidth>0</titleWidth>
  1878.         <icon>0</icon>
  1879.         <textAlign>center</textAlign>
  1880.         <font>Chicago</font>
  1881.         <textSize>12</textSize>
  1882.         <textStyle>plain</textStyle>
  1883.         <name>Make Movie Index</name>
  1884.         <script>on mouseUp
  1885. global movieID,dur
  1886. QTMovie OpenMovie, Direct, bg field fileName, the rect of btn startBtn, Paused
  1887. put the result into movieID
  1888. if "Error" is in movieID then
  1889. answer movieID
  1890. put empty into movieID
  1891. exit mouseUp
  1892. end if
  1893. QTMovie Direct,movieID,Set,pathStartPt,the topLeft of btn startBtn
  1894. QTMovie Direct,movieID,Set,pathEndPt,the topLeft of btn endBtn
  1895. QTMovie Direct,movieID,Set,pathNumFrames,30
  1896. QTMovie Direct,movieID,PlotPath
  1897.  
  1898. QTMovie Direct,movieID,Pause
  1899. QTMovie Direct,movieID,Set,eraseOnMove,false
  1900. QTMovie Direct,movieID,Set,movieRect,the rect of btn here
  1901. QTMovie Direct,movieID,Set,eraseOnMove,true
  1902. QTMovie Direct,movieID,Set,currTime,0
  1903. QTMovie Direct,movieID,Get,duration
  1904. put the result into dur
  1905. end mouseUp
  1906. </script>
  1907.     </part>
  1908.     <part>
  1909.         <id>5</id>
  1910.         <type>button</type>
  1911.         <visible> <true /> </visible>
  1912.         <reserved5> 0 </reserved5>
  1913.         <reserved4> 0 </reserved4>
  1914.         <reserved3> 0 </reserved3>
  1915.         <reserved2> 0 </reserved2>
  1916.         <reserved1> 0 </reserved1>
  1917.         <enabled> <true /> </enabled>
  1918.         <rect>
  1919.             <left>219</left>
  1920.             <top>144</top>
  1921.             <right>361</right>
  1922.             <bottom>246</bottom>
  1923.         </rect>
  1924.         <style>rectangle</style>
  1925.         <showName> <true /> </showName>
  1926.         <highlight> <true /> </highlight>
  1927.         <autoHighlight> <false /> </autoHighlight>
  1928.         <sharedHighlight> <true /> </sharedHighlight>
  1929.         <family>0</family>
  1930.         <titleWidth>0</titleWidth>
  1931.         <icon>0</icon>
  1932.         <textAlign>center</textAlign>
  1933.         <font>Chicago</font>
  1934.         <textSize>12</textSize>
  1935.         <textStyle>plain</textStyle>
  1936.         <name>here</name>
  1937.         <script>on mouseUp
  1938. playvideo
  1939. end mouseUp</script>
  1940.     </part>
  1941.     <part>
  1942.         <id>6</id>
  1943.         <type>button</type>
  1944.         <visible> <true /> </visible>
  1945.         <reserved5> 0 </reserved5>
  1946.         <reserved4> 0 </reserved4>
  1947.         <reserved3> 0 </reserved3>
  1948.         <reserved2> 0 </reserved2>
  1949.         <reserved1> 0 </reserved1>
  1950.         <enabled> <true /> </enabled>
  1951.         <rect>
  1952.             <left>236</left>
  1953.             <top>338</top>
  1954.             <right>345</right>
  1955.             <bottom>358</bottom>
  1956.         </rect>
  1957.         <style>roundrect</style>
  1958.         <showName> <true /> </showName>
  1959.         <highlight> <false /> </highlight>
  1960.         <autoHighlight> <true /> </autoHighlight>
  1961.         <sharedHighlight> <true /> </sharedHighlight>
  1962.         <family>0</family>
  1963.         <titleWidth>0</titleWidth>
  1964.         <icon>0</icon>
  1965.         <textAlign>center</textAlign>
  1966.         <font>Chicago</font>
  1967.         <textSize>12</textSize>
  1968.         <textStyle>plain</textStyle>
  1969.         <name>Dispose Movie</name>
  1970.         <script>on mouseUp
  1971. DisposeVideo
  1972. end mouseUp</script>
  1973.     </part>
  1974.     <part>
  1975.         <id>7</id>
  1976.         <type>field</type>
  1977.         <visible> <false /> </visible>
  1978.         <dontWrap> <false /> </dontWrap>
  1979.         <dontSearch> <false /> </dontSearch>
  1980.         <sharedText> <false /> </sharedText>
  1981.         <fixedLineHeight> <false /> </fixedLineHeight>
  1982.         <autoTab> <false /> </autoTab>
  1983.         <lockText> <true /> </lockText>
  1984.         <rect>
  1985.             <left>6</left>
  1986.             <top>36</top>
  1987.             <right>575</right>
  1988.             <bottom>142</bottom>
  1989.         </rect>
  1990.         <style>shadow</style>
  1991.         <autoSelect> <false /> </autoSelect>
  1992.         <showLines> <false /> </showLines>
  1993.         <wideMargins> <false /> </wideMargins>
  1994.         <multipleLines> <false /> </multipleLines>
  1995.         <reservedFamily> 0 </reservedFamily>
  1996.         <titleWidth>0</titleWidth>
  1997.         <icon>0</icon>
  1998.         <textAlign>left</textAlign>
  1999.         <font>Palatino</font>
  2000.         <textSize>18</textSize>
  2001.         <textStyle>plain</textStyle>
  2002.         <textHeight>24</textHeight>
  2003.         <name>help text</name>
  2004.         <script>on mouseUp
  2005. hide me
  2006. end mouseUp</script>
  2007.     </part>
  2008.     <content>
  2009.         <layer>background</layer>
  2010.         <id>4</id>
  2011.         <text>Your Volume:Your Folder:Your File</text>
  2012.     </content>
  2013.     <content>
  2014.         <layer>background</layer>
  2015.         <id>5</id>
  2016.         <text>The Kerns Smear</text>
  2017.     </content>
  2018.     <content>
  2019.         <layer>card</layer>
  2020.         <id>7</id>
  2021.         <text>PlotPath is a unique feature of Direct movies. This example will spread a movie out from startBtn to endBtn showing the left edges of the frames. A mouseDown handler in the card script allows you to then quickly index into the movie by clicking and dragging in the image. Works best with movies that have a lot of changing scenery.</text>
  2022.     </content>
  2023.     <name>The Kerns Smear</name>
  2024.     <script>on mouseDown
  2025. global movieID,dur
  2026. if movieID is empty then exit mouseDown
  2027. get the clickLoc
  2028. put the topLeft of btn startBtn & "," & ¬¨
  2029. the botRight of btn endBtn into r
  2030. repeat while the mouse is down
  2031. if it is within r then
  2032. put round(dur / 30) into chunkSize
  2033. put item 3 of r - item 1 of r - width of btn endBtn into wid
  2034. put trunc(((item 1 of it - item 1 of r) / wid) * 29) into index
  2035. if index < 0 then put 0 into index
  2036. if index > 29 then put 29 into index
  2037. QTMovie Direct,movieID,Set,CurrTime,chunkSize*index
  2038. end if
  2039. get the mouseLoc
  2040. end repeat
  2041. end mouseDown
  2042.  
  2043. on idle
  2044. global movieID
  2045. if movieID is not empty and movieID is a number then
  2046. QTMovie Direct,movieID,Idle
  2047. end if
  2048. end idle
  2049.  
  2050. on PlayVideo
  2051. global movieID
  2052. if movieID is not empty and movieID is a number then
  2053. QTMovie Direct,movieID,Play
  2054. end if
  2055. end PlayVideo
  2056.  
  2057. on CloseCard
  2058. DisposeVideo
  2059. pass CloseCard
  2060. end CloseCard
  2061.  
  2062. </script>
  2063. </card>
  2064.  
  2065.  
  2066. card_2402.xml
  2067. <?xml version="1.0" encoding="utf-8" ?>
  2068. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2069. <card>
  2070.     <id>2402</id>
  2071.     <filler1>0</filler1>
  2072.     <cantDelete> <false /> </cantDelete>
  2073.     <showPict> <true /> </showPict>
  2074.     <dontSearch> <false /> </dontSearch>
  2075.     <owner>2723</owner>
  2076.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  2077.     <part>
  2078.         <id>1</id>
  2079.         <type>button</type>
  2080.         <visible> <true /> </visible>
  2081.         <reserved5> 0 </reserved5>
  2082.         <reserved4> 0 </reserved4>
  2083.         <reserved3> 0 </reserved3>
  2084.         <reserved2> 0 </reserved2>
  2085.         <reserved1> 0 </reserved1>
  2086.         <enabled> <true /> </enabled>
  2087.         <rect>
  2088.             <left>88</left>
  2089.             <top>338</top>
  2090.             <right>207</right>
  2091.             <bottom>358</bottom>
  2092.         </rect>
  2093.         <style>roundrect</style>
  2094.         <showName> <true /> </showName>
  2095.         <highlight> <false /> </highlight>
  2096.         <autoHighlight> <true /> </autoHighlight>
  2097.         <sharedHighlight> <true /> </sharedHighlight>
  2098.         <family>0</family>
  2099.         <titleWidth>0</titleWidth>
  2100.         <icon>0</icon>
  2101.         <textAlign>center</textAlign>
  2102.         <font>Chicago</font>
  2103.         <textSize>12</textSize>
  2104.         <textStyle>plain</textStyle>
  2105.         <name>Click here first</name>
  2106.         <script>on mouseUp
  2107. global movieID
  2108.  
  2109. DisposeVideo -- in case one's already there
  2110.  
  2111. if the hilite of btn "mute movie" is true
  2112. then put mute into mutedOrNot
  2113. else put empty into mutedOrNot
  2114.  
  2115. QTMovie OpenMovie, Direct, bg field fileName, ¬¨
  2116. the rect of btn "then drag me", loop, mutedOrNot
  2117. put the result into movieID
  2118. if "Error" is in movieID then
  2119. answer movieID
  2120. put empty into movieID
  2121. end if
  2122.  
  2123. end mouseUp</script>
  2124.     </part>
  2125.     <part>
  2126.         <id>2</id>
  2127.         <type>button</type>
  2128.         <visible> <true /> </visible>
  2129.         <reserved5> 0 </reserved5>
  2130.         <reserved4> 0 </reserved4>
  2131.         <reserved3> 0 </reserved3>
  2132.         <reserved2> 0 </reserved2>
  2133.         <reserved1> 0 </reserved1>
  2134.         <enabled> <true /> </enabled>
  2135.         <rect>
  2136.             <left>220</left>
  2137.             <top>138</top>
  2138.             <right>332</right>
  2139.             <bottom>220</bottom>
  2140.         </rect>
  2141.         <style>rectangle</style>
  2142.         <showName> <true /> </showName>
  2143.         <highlight> <false /> </highlight>
  2144.         <autoHighlight> <false /> </autoHighlight>
  2145.         <sharedHighlight> <true /> </sharedHighlight>
  2146.         <family>0</family>
  2147.         <titleWidth>0</titleWidth>
  2148.         <icon>0</icon>
  2149.         <textAlign>center</textAlign>
  2150.         <font>Geneva</font>
  2151.         <textSize>9</textSize>
  2152.         <textStyle>plain</textStyle>
  2153.         <name>then drag me</name>
  2154.         <script>on mouseDown
  2155. global movieID
  2156. if movieID is not empty then hide me
  2157.  
  2158. put the clickLoc into origPt
  2159. put the rect of me into origRect
  2160. put origRect into newRect
  2161. put origRect into myRect
  2162. put origRect into growRect
  2163. put item 3 of growRect-18 into item 1 of growRect
  2164. put item 4 of growRect-18 into item 2 of growRect
  2165.  
  2166. QTMovie Direct,movieID,Set,eraseOnMove,not the hilite of btn "leave trail"
  2167. if origPt is within growRect then
  2168. put item 3 of growRect - item 1 of origPt into slopX
  2169. put item 4 of growRect - item 2 of origPt into slopY
  2170.  
  2171. repeat while the mouse is down
  2172. get the mouseLoc
  2173.  
  2174. put the left of me + 30 - slopX into minLimX
  2175. put the top of me + 30 - slopY into minLimY
  2176. put width of card window - slopX into maxLimX
  2177. put top of btn "Click here first" - slopY into maxLimY
  2178.  
  2179. if item 1 of it < minLimX then put minLimX into item 1 of it
  2180. if item 2 of it < minLimY then put minLimY into item 2 of it
  2181. if item 1 of it > maxLimX then put maxLimX into item 1 of it
  2182. if item 2 of it > maxLimY then put maxLimY into item 2 of it
  2183.  
  2184. put item 1 of it + slopX into item 3 of newRect
  2185. put item 2 of it + slopY into item 4 of newRect
  2186. if movieID is empty then
  2187. set the rect of me to newRect
  2188. else if newRect <> origRect then
  2189. QTMovie Direct,movieID,Set,movieRect,newRect
  2190. end if
  2191. end repeat
  2192. else
  2193. put item 1 of origPt - the left of me into minLimX
  2194. put item 2 of origPt - the top of me into minLimY
  2195. put width of card window - width of me + minLimX into maxLimX
  2196. put top of btn "Click here first" - height of me + minLimY into maxLimY
  2197.  
  2198. repeat while the mouse is down
  2199. get the mouseLoc
  2200.  
  2201. if item 1 of it < minLimX then put minLimX into item 1 of it
  2202. if item 2 of it < minLimY then put minLimY into item 2 of it
  2203. if item 1 of it > maxLimX then put maxLimX into item 1 of it
  2204. if item 2 of it > maxLimY then put maxLimY into item 2 of it
  2205.  
  2206. put item 1 of it - item 1 of origPt into slopX
  2207. put item 2 of it - item 2 of origPt into slopY
  2208.  
  2209. put origRect into myRect
  2210. add slopX to item 1 of myRect
  2211. add slopX to item 3 of myRect
  2212. add slopY to item 2 of myRect
  2213. add slopY to item 4 of myRect
  2214.  
  2215. if movieID is empty then
  2216. set the rect of me to myRect
  2217. else
  2218. QTMovie Direct,movieID,Set,movieRect,myRect
  2219. end if
  2220. end repeat
  2221.  
  2222. put myRect into newRect
  2223. end if
  2224.  
  2225. set the rect of me to newRect
  2226. if movieID is empty then show me
  2227. QTMovie Direct,movieID,Set,eraseOnMove,true
  2228. end mouseDown
  2229.  
  2230. </script>
  2231.     </part>
  2232.     <part>
  2233.         <id>3</id>
  2234.         <type>button</type>
  2235.         <visible> <true /> </visible>
  2236.         <reserved5> 0 </reserved5>
  2237.         <reserved4> 0 </reserved4>
  2238.         <reserved3> 0 </reserved3>
  2239.         <reserved2> 0 </reserved2>
  2240.         <reserved1> 0 </reserved1>
  2241.         <enabled> <true /> </enabled>
  2242.         <rect>
  2243.             <left>208</left>
  2244.             <top>338</top>
  2245.             <right>318</right>
  2246.             <bottom>358</bottom>
  2247.         </rect>
  2248.         <style>roundrect</style>
  2249.         <showName> <true /> </showName>
  2250.         <highlight> <false /> </highlight>
  2251.         <autoHighlight> <true /> </autoHighlight>
  2252.         <sharedHighlight> <true /> </sharedHighlight>
  2253.         <family>0</family>
  2254.         <titleWidth>0</titleWidth>
  2255.         <icon>0</icon>
  2256.         <textAlign>center</textAlign>
  2257.         <font>Chicago</font>
  2258.         <textSize>12</textSize>
  2259.         <textStyle>plain</textStyle>
  2260.         <name>Dispose Movie</name>
  2261.         <script>on mouseUp
  2262. DisposeVideo
  2263. end mouseUp</script>
  2264.     </part>
  2265.     <part>
  2266.         <id>4</id>
  2267.         <type>button</type>
  2268.         <visible> <true /> </visible>
  2269.         <reserved5> 0 </reserved5>
  2270.         <reserved4> 0 </reserved4>
  2271.         <reserved3> 0 </reserved3>
  2272.         <reserved2> 0 </reserved2>
  2273.         <reserved1> 0 </reserved1>
  2274.         <enabled> <true /> </enabled>
  2275.         <rect>
  2276.             <left>320</left>
  2277.             <top>338</top>
  2278.             <right>421</right>
  2279.             <bottom>358</bottom>
  2280.         </rect>
  2281.         <style>checkbox</style>
  2282.         <showName> <true /> </showName>
  2283.         <highlight> <false /> </highlight>
  2284.         <autoHighlight> <true /> </autoHighlight>
  2285.         <sharedHighlight> <true /> </sharedHighlight>
  2286.         <family>0</family>
  2287.         <titleWidth>0</titleWidth>
  2288.         <icon>0</icon>
  2289.         <textAlign>center</textAlign>
  2290.         <font>Chicago</font>
  2291.         <textSize>12</textSize>
  2292.         <textStyle>plain</textStyle>
  2293.         <name>Mute Movie</name>
  2294.         <script>on mouseUp
  2295. global movieId
  2296.  
  2297. QTMovie Direct,movieID,Set,mute,the hilite of me
  2298. end mouseUp</script>
  2299.     </part>
  2300.     <part>
  2301.         <id>7</id>
  2302.         <type>button</type>
  2303.         <visible> <true /> </visible>
  2304.         <reserved5> 0 </reserved5>
  2305.         <reserved4> 0 </reserved4>
  2306.         <reserved3> 0 </reserved3>
  2307.         <reserved2> 0 </reserved2>
  2308.         <reserved1> 0 </reserved1>
  2309.         <enabled> <true /> </enabled>
  2310.         <rect>
  2311.             <left>422</left>
  2312.             <top>338</top>
  2313.             <right>544</right>
  2314.             <bottom>355</bottom>
  2315.         </rect>
  2316.         <style>checkbox</style>
  2317.         <showName> <true /> </showName>
  2318.         <highlight> <true /> </highlight>
  2319.         <autoHighlight> <true /> </autoHighlight>
  2320.         <sharedHighlight> <true /> </sharedHighlight>
  2321.         <family>0</family>
  2322.         <titleWidth>0</titleWidth>
  2323.         <icon>0</icon>
  2324.         <textAlign>center</textAlign>
  2325.         <font>Chicago</font>
  2326.         <textSize>12</textSize>
  2327.         <textStyle>plain</textStyle>
  2328.         <name>Leave Trail</name>
  2329.         <script></script>
  2330.     </part>
  2331.     <part>
  2332.         <id>10</id>
  2333.         <type>field</type>
  2334.         <visible> <false /> </visible>
  2335.         <dontWrap> <false /> </dontWrap>
  2336.         <dontSearch> <false /> </dontSearch>
  2337.         <sharedText> <false /> </sharedText>
  2338.         <fixedLineHeight> <false /> </fixedLineHeight>
  2339.         <autoTab> <false /> </autoTab>
  2340.         <lockText> <true /> </lockText>
  2341.         <rect>
  2342.             <left>3</left>
  2343.             <top>40</top>
  2344.             <right>225</right>
  2345.             <bottom>326</bottom>
  2346.         </rect>
  2347.         <style>shadow</style>
  2348.         <autoSelect> <false /> </autoSelect>
  2349.         <showLines> <false /> </showLines>
  2350.         <wideMargins> <false /> </wideMargins>
  2351.         <multipleLines> <false /> </multipleLines>
  2352.         <reservedFamily> 0 </reservedFamily>
  2353.         <titleWidth>0</titleWidth>
  2354.         <icon>0</icon>
  2355.         <textAlign>left</textAlign>
  2356.         <font>Palatino</font>
  2357.         <textSize>18</textSize>
  2358.         <textStyle>plain</textStyle>
  2359.         <textHeight>24</textHeight>
  2360.         <name>help text</name>
  2361.         <script>on mouseUp
  2362. hide me
  2363. end mouseUp</script>
  2364.     </part>
  2365.     <content>
  2366.         <layer>background</layer>
  2367.         <id>5</id>
  2368.         <text>Drag and Resize</text>
  2369.     </content>
  2370.     <content>
  2371.         <layer>background</layer>
  2372.         <id>4</id>
  2373.         <text>Your Volume:Your Folder:Your File</text>
  2374.     </content>
  2375.     <content>
  2376.         <layer>card</layer>
  2377.         <id>10</id>
  2378.         <text>This demonstrates some of the unique things you can do with a Direct movie. You can drag the movie about, leaving a trail behind. If you click in the lower right of the movie, you can resize the movie. Note that the image remains only until HyperCard needs to update the card.
  2379. </text>
  2380.     </content>
  2381.     <name>Drag and Resize</name>
  2382.     <script>on idle
  2383. global movieID
  2384. if movieID is not empty and movieID is a number then
  2385. QTMovie Direct,movieID,Idle
  2386. end if
  2387. end idle
  2388.  
  2389. on CloseCard
  2390. DisposeVideo
  2391. show btn "then drag me"
  2392. pass CloseCard
  2393. end CloseCard
  2394.  
  2395. on OpenCard
  2396. global movieID
  2397. put empty into movieID
  2398. show btn "then drag me"
  2399. pass openCard
  2400. end OpenCard
  2401.  
  2402. on mouseDown
  2403. if the clickLoc is within the rect of btn "then drag me" then
  2404. send mouseDown to btn "then drag me"
  2405. end if
  2406. end mouseDown
  2407.  
  2408. on primeCard
  2409. set rect of btn "then drag me" to 220,138,332,220
  2410. set hilite of btn "mute movie" to false
  2411. set hilite of btn "leave trail" to true
  2412. pass primeCard
  2413. end primeCard
  2414. </script>
  2415. </card>
  2416.  
  2417.  
  2418. card_6233.xml
  2419. <?xml version="1.0" encoding="utf-8" ?>
  2420. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2421. <card>
  2422.     <id>6233</id>
  2423.     <filler1>0</filler1>
  2424.     <cantDelete> <false /> </cantDelete>
  2425.     <showPict> <true /> </showPict>
  2426.     <dontSearch> <false /> </dontSearch>
  2427.     <owner>2723</owner>
  2428.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  2429.     <part>
  2430.         <id>1</id>
  2431.         <type>button</type>
  2432.         <visible> <true /> </visible>
  2433.         <reserved5> 0 </reserved5>
  2434.         <reserved4> 0 </reserved4>
  2435.         <reserved3> 0 </reserved3>
  2436.         <reserved2> 0 </reserved2>
  2437.         <reserved1> 0 </reserved1>
  2438.         <enabled> <true /> </enabled>
  2439.         <rect>
  2440.             <left>111</left>
  2441.             <top>276</top>
  2442.             <right>218</right>
  2443.             <bottom>299</bottom>
  2444.         </rect>
  2445.         <style>roundrect</style>
  2446.         <showName> <true /> </showName>
  2447.         <highlight> <false /> </highlight>
  2448.         <autoHighlight> <true /> </autoHighlight>
  2449.         <sharedHighlight> <true /> </sharedHighlight>
  2450.         <family>0</family>
  2451.         <titleWidth>0</titleWidth>
  2452.         <icon>0</icon>
  2453.         <textAlign>center</textAlign>
  2454.         <font>Chicago</font>
  2455.         <textSize>12</textSize>
  2456.         <textStyle>plain</textStyle>
  2457.         <name>Set Seg Start</name>
  2458.         <script>on mouseUp
  2459. global currWindow
  2460. if there is a window currWindow then
  2461. set segmentStart of window currWindow to the currTime of window currWindow
  2462. end if
  2463. end mouseUp</script>
  2464.     </part>
  2465.     <part>
  2466.         <id>2</id>
  2467.         <type>button</type>
  2468.         <visible> <true /> </visible>
  2469.         <reserved5> 0 </reserved5>
  2470.         <reserved4> 0 </reserved4>
  2471.         <reserved3> 0 </reserved3>
  2472.         <reserved2> 0 </reserved2>
  2473.         <reserved1> 0 </reserved1>
  2474.         <enabled> <true /> </enabled>
  2475.         <rect>
  2476.             <left>225</left>
  2477.             <top>276</top>
  2478.             <right>332</right>
  2479.             <bottom>299</bottom>
  2480.         </rect>
  2481.         <style>roundrect</style>
  2482.         <showName> <true /> </showName>
  2483.         <highlight> <false /> </highlight>
  2484.         <autoHighlight> <true /> </autoHighlight>
  2485.         <sharedHighlight> <true /> </sharedHighlight>
  2486.         <family>0</family>
  2487.         <titleWidth>0</titleWidth>
  2488.         <icon>0</icon>
  2489.         <textAlign>center</textAlign>
  2490.         <font>Chicago</font>
  2491.         <textSize>12</textSize>
  2492.         <textStyle>plain</textStyle>
  2493.         <name>Set Seg End</name>
  2494.         <script>on mouseUp
  2495. global currWindow
  2496. if there is a window currWindow then
  2497. set segmentEnd of window currWindow to the currTime of window currWindow
  2498. end if
  2499. end mouseUp</script>
  2500.     </part>
  2501.     <part>
  2502.         <id>3</id>
  2503.         <type>button</type>
  2504.         <visible> <true /> </visible>
  2505.         <reserved5> 0 </reserved5>
  2506.         <reserved4> 0 </reserved4>
  2507.         <reserved3> 0 </reserved3>
  2508.         <reserved2> 0 </reserved2>
  2509.         <reserved1> 0 </reserved1>
  2510.         <enabled> <true /> </enabled>
  2511.         <rect>
  2512.             <left>338</left>
  2513.             <top>276</top>
  2514.             <right>450</right>
  2515.             <bottom>299</bottom>
  2516.         </rect>
  2517.         <style>checkbox</style>
  2518.         <showName> <true /> </showName>
  2519.         <highlight> <false /> </highlight>
  2520.         <autoHighlight> <true /> </autoHighlight>
  2521.         <sharedHighlight> <true /> </sharedHighlight>
  2522.         <family>0</family>
  2523.         <titleWidth>0</titleWidth>
  2524.         <icon>0</icon>
  2525.         <textAlign>center</textAlign>
  2526.         <font>Chicago</font>
  2527.         <textSize>12</textSize>
  2528.         <textStyle>plain</textStyle>
  2529.         <name>Play Segment</name>
  2530.         <script>on mouseUp
  2531. global currWindow
  2532. if there is a window currWindow then
  2533. set segmentPlay of window currWindow to the hilite of me
  2534. end if
  2535. end mouseUp</script>
  2536.     </part>
  2537.     <part>
  2538.         <id>5</id>
  2539.         <type>button</type>
  2540.         <visible> <true /> </visible>
  2541.         <reserved5> 0 </reserved5>
  2542.         <reserved4> 0 </reserved4>
  2543.         <reserved3> 0 </reserved3>
  2544.         <reserved2> 0 </reserved2>
  2545.         <reserved1> 0 </reserved1>
  2546.         <enabled> <true /> </enabled>
  2547.         <rect>
  2548.             <left>88</left>
  2549.             <top>338</top>
  2550.             <right>221</right>
  2551.             <bottom>358</bottom>
  2552.         </rect>
  2553.         <style>roundrect</style>
  2554.         <showName> <true /> </showName>
  2555.         <highlight> <false /> </highlight>
  2556.         <autoHighlight> <true /> </autoHighlight>
  2557.         <sharedHighlight> <true /> </sharedHighlight>
  2558.         <family>0</family>
  2559.         <titleWidth>0</titleWidth>
  2560.         <icon>0</icon>
  2561.         <textAlign>center</textAlign>
  2562.         <font>Chicago</font>
  2563.         <textSize>12</textSize>
  2564.         <textStyle>plain</textStyle>
  2565.         <name>Click here first</name>
  2566.         <script>on mouseUp
  2567. global currWindow
  2568.  
  2569. if there is a window currWindow then close window currWindow
  2570.  
  2571. if the hilite of btn loop then
  2572. put loop into loopKind
  2573. else if the hilite of btn palindrome then
  2574. put palindrome into loopKind
  2575. else
  2576. put empty into loopKind
  2577. end if
  2578.  
  2579. QTMovie OpenMovie, windoid, bg field fileName, the topLeft of btn here, loopKind
  2580. get the result
  2581. if "Error" is in it then
  2582. answer it
  2583. exit mouseUp
  2584. end if
  2585.  
  2586. put ExtractFileName(bg field fileName) into currWindow
  2587.  
  2588. set hilite of btn "play segment" to false
  2589. end mouseUp</script>
  2590.     </part>
  2591.     <part>
  2592.         <id>7</id>
  2593.         <type>button</type>
  2594.         <visible> <true /> </visible>
  2595.         <reserved5> 0 </reserved5>
  2596.         <reserved4> 0 </reserved4>
  2597.         <reserved3> 0 </reserved3>
  2598.         <reserved2> 0 </reserved2>
  2599.         <reserved1> 0 </reserved1>
  2600.         <enabled> <true /> </enabled>
  2601.         <rect>
  2602.             <left>158</left>
  2603.             <top>252</top>
  2604.             <right>205</right>
  2605.             <bottom>268</bottom>
  2606.         </rect>
  2607.         <style>radiobutton</style>
  2608.         <showName> <true /> </showName>
  2609.         <highlight> <true /> </highlight>
  2610.         <autoHighlight> <true /> </autoHighlight>
  2611.         <sharedHighlight> <true /> </sharedHighlight>
  2612.         <family>0</family>
  2613.         <titleWidth>0</titleWidth>
  2614.         <icon>0</icon>
  2615.         <textAlign>center</textAlign>
  2616.         <font>Geneva</font>
  2617.         <textSize>9</textSize>
  2618.         <textStyle>bold</textStyle>
  2619.         <name>Loop</name>
  2620.         <script>on mouseUp
  2621. LoopSelect
  2622. end mouseUp</script>
  2623.     </part>
  2624.     <part>
  2625.         <id>8</id>
  2626.         <type>button</type>
  2627.         <visible> <true /> </visible>
  2628.         <reserved5> 0 </reserved5>
  2629.         <reserved4> 0 </reserved4>
  2630.         <reserved3> 0 </reserved3>
  2631.         <reserved2> 0 </reserved2>
  2632.         <reserved1> 0 </reserved1>
  2633.         <enabled> <true /> </enabled>
  2634.         <rect>
  2635.             <left>215</left>
  2636.             <top>252</top>
  2637.             <right>299</right>
  2638.             <bottom>268</bottom>
  2639.         </rect>
  2640.         <style>radiobutton</style>
  2641.         <showName> <true /> </showName>
  2642.         <highlight> <false /> </highlight>
  2643.         <autoHighlight> <true /> </autoHighlight>
  2644.         <sharedHighlight> <true /> </sharedHighlight>
  2645.         <family>0</family>
  2646.         <titleWidth>0</titleWidth>
  2647.         <icon>0</icon>
  2648.         <textAlign>center</textAlign>
  2649.         <font>Geneva</font>
  2650.         <textSize>9</textSize>
  2651.         <textStyle>bold</textStyle>
  2652.         <name>Palindrome</name>
  2653.         <script>on mouseUp
  2654. LoopSelect
  2655. end mouseUp</script>
  2656.     </part>
  2657.     <part>
  2658.         <id>9</id>
  2659.         <type>button</type>
  2660.         <visible> <true /> </visible>
  2661.         <reserved5> 0 </reserved5>
  2662.         <reserved4> 0 </reserved4>
  2663.         <reserved3> 0 </reserved3>
  2664.         <reserved2> 0 </reserved2>
  2665.         <reserved1> 0 </reserved1>
  2666.         <enabled> <true /> </enabled>
  2667.         <rect>
  2668.             <left>309</left>
  2669.             <top>252</top>
  2670.             <right>393</right>
  2671.             <bottom>268</bottom>
  2672.         </rect>
  2673.         <style>radiobutton</style>
  2674.         <showName> <true /> </showName>
  2675.         <highlight> <false /> </highlight>
  2676.         <autoHighlight> <true /> </autoHighlight>
  2677.         <sharedHighlight> <true /> </sharedHighlight>
  2678.         <family>0</family>
  2679.         <titleWidth>0</titleWidth>
  2680.         <icon>0</icon>
  2681.         <textAlign>center</textAlign>
  2682.         <font>Geneva</font>
  2683.         <textSize>9</textSize>
  2684.         <textStyle>bold</textStyle>
  2685.         <name>Neither</name>
  2686.         <script>on mouseUp
  2687. LoopSelect
  2688. end mouseUp</script>
  2689.     </part>
  2690.     <part>
  2691.         <id>10</id>
  2692.         <type>button</type>
  2693.         <visible> <true /> </visible>
  2694.         <reserved5> 0 </reserved5>
  2695.         <reserved4> 0 </reserved4>
  2696.         <reserved3> 0 </reserved3>
  2697.         <reserved2> 0 </reserved2>
  2698.         <reserved1> 0 </reserved1>
  2699.         <enabled> <true /> </enabled>
  2700.         <rect>
  2701.             <left>183</left>
  2702.             <top>65</top>
  2703.             <right>230</right>
  2704.             <bottom>97</bottom>
  2705.         </rect>
  2706.         <style>transparent</style>
  2707.         <showName> <true /> </showName>
  2708.         <highlight> <true /> </highlight>
  2709.         <autoHighlight> <false /> </autoHighlight>
  2710.         <sharedHighlight> <true /> </sharedHighlight>
  2711.         <family>0</family>
  2712.         <titleWidth>0</titleWidth>
  2713.         <icon>0</icon>
  2714.         <textAlign>center</textAlign>
  2715.         <font>Chicago</font>
  2716.         <textSize>12</textSize>
  2717.         <textStyle>plain</textStyle>
  2718.         <name>here</name>
  2719.         <script>on mouseDown
  2720. put the clickLoc into myClick
  2721. put the loc of me into origLoc
  2722. put item 1 of origLoc into origX
  2723. put item 2 of origLoc into origY
  2724. put item 1 of myClick into clickX
  2725. put item 2 of myClick into clickY
  2726. repeat while the mouse is down
  2727. set loc of me to Min(Max(0,origX - (clickX - the mouseH)),width of this card),¬¨
  2728. Min(Max(0, origY - (clickY - the mouseV)), height of this card)
  2729. end repeat
  2730. end mouseDown</script>
  2731.     </part>
  2732.     <part>
  2733.         <id>11</id>
  2734.         <type>field</type>
  2735.         <visible> <false /> </visible>
  2736.         <dontWrap> <false /> </dontWrap>
  2737.         <dontSearch> <false /> </dontSearch>
  2738.         <sharedText> <false /> </sharedText>
  2739.         <fixedLineHeight> <false /> </fixedLineHeight>
  2740.         <autoTab> <false /> </autoTab>
  2741.         <lockText> <true /> </lockText>
  2742.         <rect>
  2743.             <left>391</left>
  2744.             <top>32</top>
  2745.             <right>572</right>
  2746.             <bottom>274</bottom>
  2747.         </rect>
  2748.         <style>shadow</style>
  2749.         <autoSelect> <false /> </autoSelect>
  2750.         <showLines> <false /> </showLines>
  2751.         <wideMargins> <false /> </wideMargins>
  2752.         <multipleLines> <false /> </multipleLines>
  2753.         <reservedFamily> 0 </reservedFamily>
  2754.         <titleWidth>0</titleWidth>
  2755.         <icon>0</icon>
  2756.         <textAlign>left</textAlign>
  2757.         <font>Palatino</font>
  2758.         <textSize>18</textSize>
  2759.         <textStyle>plain</textStyle>
  2760.         <textHeight>24</textHeight>
  2761.         <name>help text</name>
  2762.         <script>on mouseUp
  2763. hide me
  2764. end mouseUp</script>
  2765.     </part>
  2766.     <content>
  2767.         <layer>background</layer>
  2768.         <id>4</id>
  2769.         <text>Your Volume:Your Folder:Your File</text>
  2770.     </content>
  2771.     <content>
  2772.         <layer>background</layer>
  2773.         <id>5</id>
  2774.         <text>Segment play</text>
  2775.     </content>
  2776.     <content>
  2777.         <layer>card</layer>
  2778.         <id>11</id>
  2779.         <text>After you select and start a movie, click on Set Seg Start, then Set Seg End, then Play Segment. The Segment selected will be played in the chosen loop mode.
  2780. (You must click seg start before seg end.)
  2781.  
  2782.  
  2783. </text>
  2784.     </content>
  2785.     <name>Segment play</name>
  2786.     <script>on LoopSelect loopType
  2787. put "loop,palindrome,neither" into btnNames
  2788. if loopType is empty then put the short name of the target into loopType
  2789.  
  2790. repeat with i = 1 to 3
  2791. put (item i of btnNames = loopType) into hiliteit
  2792. set hilite of btn (item i of btnNames) to hiliteIt
  2793. end repeat
  2794.  
  2795. global currWindow
  2796. if there is a window currWindow then
  2797. set loop of window currWindow to the hilite of btn loop
  2798. set palindrome of window currWindow to the hilite of btn palindrome
  2799. end if
  2800. end LoopSelect
  2801.  
  2802. on closeCard
  2803. global currWindow
  2804. if there is a window currWindow then close window currWindow
  2805. pass CloseCard
  2806. end closeCard
  2807.  
  2808. on primeCard
  2809. LoopSelect "Loop"
  2810. Set hilite of btn "Play Segment" to false
  2811. pass primeCard
  2812. end primeCard
  2813. </script>
  2814. </card>
  2815.  
  2816.  
  2817. card_8456.xml
  2818. <?xml version="1.0" encoding="utf-8" ?>
  2819. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  2820. <card>
  2821.     <id>8456</id>
  2822.     <filler1>0</filler1>
  2823.     <bitmap>BMAP_5667.pbm</bitmap>
  2824.     <cantDelete> <false /> </cantDelete>
  2825.     <showPict> <true /> </showPict>
  2826.     <dontSearch> <false /> </dontSearch>
  2827.     <owner>2723</owner>
  2828.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  2829.     <part>
  2830.         <id>1</id>
  2831.         <type>button</type>
  2832.         <visible> <true /> </visible>
  2833.         <reserved5> 0 </reserved5>
  2834.         <reserved4> 0 </reserved4>
  2835.         <reserved3> 0 </reserved3>
  2836.         <reserved2> 0 </reserved2>
  2837.         <reserved1> 0 </reserved1>
  2838.         <enabled> <true /> </enabled>
  2839.         <rect>
  2840.             <left>355</left>
  2841.             <top>166</top>
  2842.             <right>442</right>
  2843.             <bottom>182</bottom>
  2844.         </rect>
  2845.         <style>checkbox</style>
  2846.         <showName> <true /> </showName>
  2847.         <highlight> <true /> </highlight>
  2848.         <autoHighlight> <true /> </autoHighlight>
  2849.         <sharedHighlight> <true /> </sharedHighlight>
  2850.         <family>0</family>
  2851.         <titleWidth>0</titleWidth>
  2852.         <icon>0</icon>
  2853.         <textAlign>center</textAlign>
  2854.         <font>Geneva</font>
  2855.         <textSize>9</textSize>
  2856.         <textStyle>bold</textStyle>
  2857.         <name>Controller</name>
  2858.         <script>on mouseUp
  2859. global currwindow
  2860. if there is a window currwindow then
  2861. if the hilite of me then
  2862. send showcontroller to window currwindow
  2863. else
  2864. send hidecontroller to window currwindow
  2865. end if
  2866. end if
  2867. pass mouseUp
  2868. end mouseUp</script>
  2869.     </part>
  2870.     <part>
  2871.         <id>5</id>
  2872.         <type>button</type>
  2873.         <visible> <true /> </visible>
  2874.         <reserved5> 0 </reserved5>
  2875.         <reserved4> 0 </reserved4>
  2876.         <reserved3> 0 </reserved3>
  2877.         <reserved2> 0 </reserved2>
  2878.         <reserved1> 0 </reserved1>
  2879.         <enabled> <true /> </enabled>
  2880.         <rect>
  2881.             <left>355</left>
  2882.             <top>126</top>
  2883.             <right>402</right>
  2884.             <bottom>142</bottom>
  2885.         </rect>
  2886.         <style>radiobutton</style>
  2887.         <showName> <true /> </showName>
  2888.         <highlight> <true /> </highlight>
  2889.         <autoHighlight> <true /> </autoHighlight>
  2890.         <sharedHighlight> <true /> </sharedHighlight>
  2891.         <family>0</family>
  2892.         <titleWidth>0</titleWidth>
  2893.         <icon>0</icon>
  2894.         <textAlign>center</textAlign>
  2895.         <font>Geneva</font>
  2896.         <textSize>9</textSize>
  2897.         <textStyle>bold</textStyle>
  2898.         <name>Loop</name>
  2899.         <script>on mouseUp
  2900. LoopSelect
  2901. end mouseUp</script>
  2902.     </part>
  2903.     <part>
  2904.         <id>6</id>
  2905.         <type>button</type>
  2906.         <visible> <true /> </visible>
  2907.         <reserved5> 0 </reserved5>
  2908.         <reserved4> 0 </reserved4>
  2909.         <reserved3> 0 </reserved3>
  2910.         <reserved2> 0 </reserved2>
  2911.         <reserved1> 0 </reserved1>
  2912.         <enabled> <true /> </enabled>
  2913.         <rect>
  2914.             <left>403</left>
  2915.             <top>126</top>
  2916.             <right>487</right>
  2917.             <bottom>142</bottom>
  2918.         </rect>
  2919.         <style>radiobutton</style>
  2920.         <showName> <true /> </showName>
  2921.         <highlight> <false /> </highlight>
  2922.         <autoHighlight> <true /> </autoHighlight>
  2923.         <sharedHighlight> <true /> </sharedHighlight>
  2924.         <family>0</family>
  2925.         <titleWidth>0</titleWidth>
  2926.         <icon>0</icon>
  2927.         <textAlign>center</textAlign>
  2928.         <font>Geneva</font>
  2929.         <textSize>9</textSize>
  2930.         <textStyle>bold</textStyle>
  2931.         <name>Palindrome</name>
  2932.         <script>on mouseUp
  2933. LoopSelect
  2934. end mouseUp</script>
  2935.     </part>
  2936.     <part>
  2937.         <id>7</id>
  2938.         <type>button</type>
  2939.         <visible> <true /> </visible>
  2940.         <reserved5> 0 </reserved5>
  2941.         <reserved4> 0 </reserved4>
  2942.         <reserved3> 0 </reserved3>
  2943.         <reserved2> 0 </reserved2>
  2944.         <reserved1> 0 </reserved1>
  2945.         <enabled> <true /> </enabled>
  2946.         <rect>
  2947.             <left>355</left>
  2948.             <top>241</top>
  2949.             <right>472</right>
  2950.             <bottom>257</bottom>
  2951.         </rect>
  2952.         <style>checkbox</style>
  2953.         <showName> <true /> </showName>
  2954.         <highlight> <false /> </highlight>
  2955.         <autoHighlight> <true /> </autoHighlight>
  2956.         <sharedHighlight> <true /> </sharedHighlight>
  2957.         <family>0</family>
  2958.         <titleWidth>0</titleWidth>
  2959.         <icon>0</icon>
  2960.         <textAlign>center</textAlign>
  2961.         <font>Geneva</font>
  2962.         <textSize>9</textSize>
  2963.         <textStyle>bold</textStyle>
  2964.         <name>CloseOnFinish</name>
  2965.         <script>on mouseUp
  2966. global currwindow
  2967. if there is a window currwindow then
  2968. set the closeOnFinish of window currwindow to the hilite of me
  2969. end if
  2970. pass mouseUp
  2971. end mouseUp</script>
  2972.     </part>
  2973.     <part>
  2974.         <id>8</id>
  2975.         <type>button</type>
  2976.         <visible> <true /> </visible>
  2977.         <reserved5> 0 </reserved5>
  2978.         <reserved4> 0 </reserved4>
  2979.         <reserved3> 0 </reserved3>
  2980.         <reserved2> 0 </reserved2>
  2981.         <reserved1> 0 </reserved1>
  2982.         <enabled> <true /> </enabled>
  2983.         <rect>
  2984.             <left>459</left>
  2985.             <top>166</top>
  2986.             <right>576</right>
  2987.             <bottom>182</bottom>
  2988.         </rect>
  2989.         <style>checkbox</style>
  2990.         <showName> <true /> </showName>
  2991.         <highlight> <false /> </highlight>
  2992.         <autoHighlight> <true /> </autoHighlight>
  2993.         <sharedHighlight> <true /> </sharedHighlight>
  2994.         <family>0</family>
  2995.         <titleWidth>0</titleWidth>
  2996.         <icon>0</icon>
  2997.         <textAlign>center</textAlign>
  2998.         <font>Geneva</font>
  2999.         <textSize>9</textSize>
  3000.         <textStyle>bold</textStyle>
  3001.         <name>SeeAllFrames</name>
  3002.         <script>on mouseUp
  3003. global currwindow
  3004. if there is a window currwindow then
  3005. set seeAllFrames of window currwindow to the hilite of me
  3006. if not the hilite of me then send play to window currwindow
  3007. end if
  3008. pass mouseUp
  3009. end mouseUp</script>
  3010.     </part>
  3011.     <part>
  3012.         <id>9</id>
  3013.         <type>button</type>
  3014.         <visible> <true /> </visible>
  3015.         <reserved5> 0 </reserved5>
  3016.         <reserved4> 0 </reserved4>
  3017.         <reserved3> 0 </reserved3>
  3018.         <reserved2> 0 </reserved2>
  3019.         <reserved1> 0 </reserved1>
  3020.         <enabled> <true /> </enabled>
  3021.         <rect>
  3022.             <left>459</left>
  3023.             <top>181</top>
  3024.             <right>576</right>
  3025.             <bottom>197</bottom>
  3026.         </rect>
  3027.         <style>checkbox</style>
  3028.         <showName> <true /> </showName>
  3029.         <highlight> <false /> </highlight>
  3030.         <autoHighlight> <true /> </autoHighlight>
  3031.         <sharedHighlight> <true /> </sharedHighlight>
  3032.         <family>0</family>
  3033.         <titleWidth>0</titleWidth>
  3034.         <icon>0</icon>
  3035.         <textAlign>center</textAlign>
  3036.         <font>Geneva</font>
  3037.         <textSize>9</textSize>
  3038.         <textStyle>bold</textStyle>
  3039.         <name>ShowPoster</name>
  3040.         <script>on mouseUp
  3041. global currwindow
  3042. if there is a window currwindow then
  3043. if the hilite of me then
  3044. send showposter to window currwindow
  3045. else
  3046. --send hideposter to window currwindow
  3047. end if
  3048. end if
  3049. pass mouseUp
  3050. end mouseUp</script>
  3051.     </part>
  3052.     <part>
  3053.         <id>10</id>
  3054.         <type>button</type>
  3055.         <visible> <true /> </visible>
  3056.         <reserved5> 0 </reserved5>
  3057.         <reserved4> 0 </reserved4>
  3058.         <reserved3> 0 </reserved3>
  3059.         <reserved2> 0 </reserved2>
  3060.         <reserved1> 0 </reserved1>
  3061.         <enabled> <true /> </enabled>
  3062.         <rect>
  3063.             <left>355</left>
  3064.             <top>211</top>
  3065.             <right>442</right>
  3066.             <bottom>227</bottom>
  3067.         </rect>
  3068.         <style>checkbox</style>
  3069.         <showName> <true /> </showName>
  3070.         <highlight> <false /> </highlight>
  3071.         <autoHighlight> <true /> </autoHighlight>
  3072.         <sharedHighlight> <true /> </sharedHighlight>
  3073.         <family>0</family>
  3074.         <titleWidth>0</titleWidth>
  3075.         <icon>0</icon>
  3076.         <textAlign>center</textAlign>
  3077.         <font>Geneva</font>
  3078.         <textSize>9</textSize>
  3079.         <textStyle>bold</textStyle>
  3080.         <name>Invisible</name>
  3081.         <script>on mouseUp
  3082. global currwindow
  3083. if there is a window currwindow then
  3084. set visible of window currwindow to not the hilite of me
  3085. end if
  3086. pass mouseUp
  3087. end mouseUp</script>
  3088.     </part>
  3089.     <part>
  3090.         <id>11</id>
  3091.         <type>button</type>
  3092.         <visible> <true /> </visible>
  3093.         <reserved5> 0 </reserved5>
  3094.         <reserved4> 0 </reserved4>
  3095.         <reserved3> 0 </reserved3>
  3096.         <reserved2> 0 </reserved2>
  3097.         <reserved1> 0 </reserved1>
  3098.         <enabled> <true /> </enabled>
  3099.         <rect>
  3100.             <left>355</left>
  3101.             <top>226</top>
  3102.             <right>442</right>
  3103.             <bottom>242</bottom>
  3104.         </rect>
  3105.         <style>checkbox</style>
  3106.         <showName> <true /> </showName>
  3107.         <highlight> <false /> </highlight>
  3108.         <autoHighlight> <true /> </autoHighlight>
  3109.         <sharedHighlight> <true /> </sharedHighlight>
  3110.         <family>0</family>
  3111.         <titleWidth>0</titleWidth>
  3112.         <icon>0</icon>
  3113.         <textAlign>center</textAlign>
  3114.         <font>Geneva</font>
  3115.         <textSize>9</textSize>
  3116.         <textStyle>bold</textStyle>
  3117.         <name>Mute</name>
  3118.         <script>on mouseUp
  3119. global currwindow
  3120. if there is a window currwindow then
  3121. set mute of window currwindow to the hilite of me
  3122. end if
  3123. pass mouseUp
  3124. end mouseUp</script>
  3125.     </part>
  3126.     <part>
  3127.         <id>20</id>
  3128.         <type>button</type>
  3129.         <visible> <true /> </visible>
  3130.         <reserved5> 0 </reserved5>
  3131.         <reserved4> 0 </reserved4>
  3132.         <reserved3> 0 </reserved3>
  3133.         <reserved2> 0 </reserved2>
  3134.         <reserved1> 0 </reserved1>
  3135.         <enabled> <true /> </enabled>
  3136.         <rect>
  3137.             <left>89</left>
  3138.             <top>339</top>
  3139.             <right>195</right>
  3140.             <bottom>358</bottom>
  3141.         </rect>
  3142.         <style>roundrect</style>
  3143.         <showName> <true /> </showName>
  3144.         <highlight> <false /> </highlight>
  3145.         <autoHighlight> <true /> </autoHighlight>
  3146.         <sharedHighlight> <true /> </sharedHighlight>
  3147.         <family>0</family>
  3148.         <titleWidth>0</titleWidth>
  3149.         <icon>0</icon>
  3150.         <textAlign>center</textAlign>
  3151.         <font>Chicago</font>
  3152.         <textSize>12</textSize>
  3153.         <textStyle>plain</textStyle>
  3154.         <name>Play Movie</name>
  3155.         <script>on mouseUp
  3156. global currWindow
  3157.  
  3158. --if there is a window currWindow then close window currwindow
  3159.  
  3160. put composeCommand() into QTCommand
  3161.  
  3162. setSoundBar 255
  3163. setRateBar 1
  3164.  
  3165. set cursor to watch
  3166.  
  3167. do QTCommand
  3168.  
  3169. get the result
  3170. if "Error" is in it then
  3171. answer it
  3172. put empty into currWindow
  3173. else
  3174. put ExtractFileName(bg field fileName) into currWindow
  3175. end if
  3176.  
  3177. end mouseUp</script>
  3178.     </part>
  3179.     <part>
  3180.         <id>21</id>
  3181.         <type>button</type>
  3182.         <visible> <true /> </visible>
  3183.         <reserved5> 0 </reserved5>
  3184.         <reserved4> 0 </reserved4>
  3185.         <reserved3> 0 </reserved3>
  3186.         <reserved2> 0 </reserved2>
  3187.         <reserved1> 0 </reserved1>
  3188.         <enabled> <true /> </enabled>
  3189.         <rect>
  3190.             <left>313</left>
  3191.             <top>53</top>
  3192.             <right>405</right>
  3193.             <bottom>73</bottom>
  3194.         </rect>
  3195.         <style>shadow</style>
  3196.         <showName> <true /> </showName>
  3197.         <highlight> <false /> </highlight>
  3198.         <autoHighlight> <true /> </autoHighlight>
  3199.         <sharedHighlight> <true /> </sharedHighlight>
  3200.         <family>0</family>
  3201.         <titleWidth>0</titleWidth>
  3202.         <icon>0</icon>
  3203.         <textAlign>center</textAlign>
  3204.         <font>Chicago</font>
  3205.         <textSize>12</textSize>
  3206.         <textStyle>plain</textStyle>
  3207.         <name>TallWindoid</name>
  3208.         <script>on mouseDown
  3209. put "Plain,Windoid,Document,Dialog,AltDialog,TallWindoid,MovieWDEF"¬¨
  3210. into theMenuItems
  3211. get PopUpMenu (theMenuItems, 0, bottom of me, left of me+1)
  3212. If it > 0 then
  3213. set name of me to item it of theMenuItems
  3214. end if
  3215. end mouseDown
  3216. </script>
  3217.     </part>
  3218.     <part>
  3219.         <id>22</id>
  3220.         <type>button</type>
  3221.         <visible> <true /> </visible>
  3222.         <reserved5> 0 </reserved5>
  3223.         <reserved4> 0 </reserved4>
  3224.         <reserved3> 0 </reserved3>
  3225.         <reserved2> 0 </reserved2>
  3226.         <reserved1> 0 </reserved1>
  3227.         <enabled> <true /> </enabled>
  3228.         <rect>
  3229.             <left>355</left>
  3230.             <top>196</top>
  3231.             <right>442</right>
  3232.             <bottom>212</bottom>
  3233.         </rect>
  3234.         <style>checkbox</style>
  3235.         <showName> <true /> </showName>
  3236.         <highlight> <false /> </highlight>
  3237.         <autoHighlight> <true /> </autoHighlight>
  3238.         <sharedHighlight> <true /> </sharedHighlight>
  3239.         <family>0</family>
  3240.         <titleWidth>0</titleWidth>
  3241.         <icon>0</icon>
  3242.         <textAlign>center</textAlign>
  3243.         <font>Geneva</font>
  3244.         <textSize>9</textSize>
  3245.         <textStyle>bold</textStyle>
  3246.         <name>Paused</name>
  3247.         <script>on mouseUp
  3248. global currwindow
  3249. if there is a window currwindow then
  3250. if the hilite of me then
  3251. send pause to window currwindow
  3252. else
  3253. send play to window currwindow
  3254. end if
  3255. end if
  3256. pass mouseUp
  3257. end mouseUp</script>
  3258.     </part>
  3259.     <part>
  3260.         <id>23</id>
  3261.         <type>button</type>
  3262.         <visible> <true /> </visible>
  3263.         <reserved5> 0 </reserved5>
  3264.         <reserved4> 0 </reserved4>
  3265.         <reserved3> 0 </reserved3>
  3266.         <reserved2> 0 </reserved2>
  3267.         <reserved1> 0 </reserved1>
  3268.         <enabled> <true /> </enabled>
  3269.         <rect>
  3270.             <left>77</left>
  3271.             <top>88</top>
  3272.             <right>122</right>
  3273.             <bottom>124</bottom>
  3274.         </rect>
  3275.         <style>transparent</style>
  3276.         <showName> <true /> </showName>
  3277.         <highlight> <true /> </highlight>
  3278.         <autoHighlight> <false /> </autoHighlight>
  3279.         <sharedHighlight> <true /> </sharedHighlight>
  3280.         <family>0</family>
  3281.         <titleWidth>0</titleWidth>
  3282.         <icon>0</icon>
  3283.         <textAlign>center</textAlign>
  3284.         <font>Chicago</font>
  3285.         <textSize>12</textSize>
  3286.         <textStyle>plain</textStyle>
  3287.         <name>here</name>
  3288.         <script>on mouseDown
  3289. put the clickLoc into myClick
  3290. put the loc of me into origLoc
  3291. put item 1 of origLoc into origX
  3292. put item 2 of origLoc into origY
  3293. put item 1 of myClick into clickX
  3294. put item 2 of myClick into clickY
  3295. repeat while the mouse is down
  3296. set loc of me to Min(Max(0,origX - (clickX - the mouseH)),width of this card),¬¨
  3297. Min(Max(0, origY - (clickY - the mouseV)), height of this card)
  3298. end repeat
  3299. end mouseDown</script>
  3300.     </part>
  3301.     <part>
  3302.         <id>24</id>
  3303.         <type>button</type>
  3304.         <visible> <true /> </visible>
  3305.         <reserved5> 0 </reserved5>
  3306.         <reserved4> 0 </reserved4>
  3307.         <reserved3> 0 </reserved3>
  3308.         <reserved2> 0 </reserved2>
  3309.         <reserved1> 0 </reserved1>
  3310.         <enabled> <true /> </enabled>
  3311.         <rect>
  3312.             <left>197</left>
  3313.             <top>339</top>
  3314.             <right>310</right>
  3315.             <bottom>358</bottom>
  3316.         </rect>
  3317.         <style>roundrect</style>
  3318.         <showName> <true /> </showName>
  3319.         <highlight> <false /> </highlight>
  3320.         <autoHighlight> <true /> </autoHighlight>
  3321.         <sharedHighlight> <true /> </sharedHighlight>
  3322.         <family>0</family>
  3323.         <titleWidth>0</titleWidth>
  3324.         <icon>0</icon>
  3325.         <textAlign>center</textAlign>
  3326.         <font>Chicago</font>
  3327.         <textSize>12</textSize>
  3328.         <textStyle>plain</textStyle>
  3329.         <name>Close Window</name>
  3330.         <script>on mouseUp
  3331. global currwindow
  3332. if there is a window currwindow then close window currwindow
  3333. end mouseUp</script>
  3334.     </part>
  3335.     <part>
  3336.         <id>25</id>
  3337.         <type>button</type>
  3338.         <visible> <true /> </visible>
  3339.         <reserved5> 0 </reserved5>
  3340.         <reserved4> 0 </reserved4>
  3341.         <reserved3> 0 </reserved3>
  3342.         <reserved2> 0 </reserved2>
  3343.         <reserved1> 0 </reserved1>
  3344.         <enabled> <true /> </enabled>
  3345.         <rect>
  3346.             <left>449</left>
  3347.             <top>283</top>
  3348.             <right>551</right>
  3349.             <bottom>292</bottom>
  3350.         </rect>
  3351.         <style>transparent</style>
  3352.         <showName> <false /> </showName>
  3353.         <highlight> <true /> </highlight>
  3354.         <autoHighlight> <false /> </autoHighlight>
  3355.         <sharedHighlight> <true /> </sharedHighlight>
  3356.         <family>0</family>
  3357.         <titleWidth>0</titleWidth>
  3358.         <icon>0</icon>
  3359.         <textAlign>center</textAlign>
  3360.         <font>Chicago</font>
  3361.         <textSize>12</textSize>
  3362.         <textStyle>plain</textStyle>
  3363.         <name>soundbar</name>
  3364.         <script></script>
  3365.     </part>
  3366.     <part>
  3367.         <id>26</id>
  3368.         <type>button</type>
  3369.         <visible> <true /> </visible>
  3370.         <reserved5> 0 </reserved5>
  3371.         <reserved4> 0 </reserved4>
  3372.         <reserved3> 0 </reserved3>
  3373.         <reserved2> 0 </reserved2>
  3374.         <reserved1> 0 </reserved1>
  3375.         <enabled> <true /> </enabled>
  3376.         <rect>
  3377.             <left>542</left>
  3378.             <top>277</top>
  3379.             <right>550</right>
  3380.             <bottom>298</bottom>
  3381.         </rect>
  3382.         <style>rectangle</style>
  3383.         <showName> <false /> </showName>
  3384.         <highlight> <false /> </highlight>
  3385.         <autoHighlight> <false /> </autoHighlight>
  3386.         <sharedHighlight> <true /> </sharedHighlight>
  3387.         <family>0</family>
  3388.         <titleWidth>0</titleWidth>
  3389.         <icon>0</icon>
  3390.         <textAlign>center</textAlign>
  3391.         <font>Chicago</font>
  3392.         <textSize>12</textSize>
  3393.         <textStyle>plain</textStyle>
  3394.         <name>soundKnob</name>
  3395.         <script>on mouseDown
  3396. global dX
  3397. put item 1 of the clickLoc-the Left of me into dX
  3398. end mouseDown
  3399.  
  3400. on mouseStillDown
  3401. global dX
  3402. put the mouseLoc into currLoc
  3403.  
  3404. put the left of btn soundbar+1+dX into minX
  3405. put the right of btn soundbar-width of me-1+dX into maxX
  3406.  
  3407. put the topLeft of me into newTopLeft
  3408. put min(max(item 1 of currLoc, minX),maxX)-dX into item 1 of newtopLeft
  3409.  
  3410. set the topLeft of me to newTopLeft
  3411.  
  3412. put (item 1 of newtopLeft - minX+dX) / (maxX-minX) into fraction
  3413.  
  3414. put round(fraction * 255) into x
  3415. put x into cd field soundData
  3416.  
  3417. global currwindow
  3418. if there is a window currwindow then
  3419. set audioLevel of window currwindow to x
  3420. send idle to window currwindow
  3421. end if
  3422.  
  3423. end mouseStillDown
  3424. </script>
  3425.     </part>
  3426.     <part>
  3427.         <id>27</id>
  3428.         <type>field</type>
  3429.         <visible> <true /> </visible>
  3430.         <dontWrap> <false /> </dontWrap>
  3431.         <dontSearch> <false /> </dontSearch>
  3432.         <sharedText> <false /> </sharedText>
  3433.         <fixedLineHeight> <false /> </fixedLineHeight>
  3434.         <autoTab> <false /> </autoTab>
  3435.         <lockText> <true /> </lockText>
  3436.         <rect>
  3437.             <left>411</left>
  3438.             <top>280</top>
  3439.             <right>445</right>
  3440.             <bottom>293</bottom>
  3441.         </rect>
  3442.         <style>rectangle</style>
  3443.         <autoSelect> <false /> </autoSelect>
  3444.         <showLines> <false /> </showLines>
  3445.         <wideMargins> <false /> </wideMargins>
  3446.         <multipleLines> <false /> </multipleLines>
  3447.         <reservedFamily> 0 </reservedFamily>
  3448.         <titleWidth>0</titleWidth>
  3449.         <icon>0</icon>
  3450.         <textAlign>left</textAlign>
  3451.         <font>Geneva</font>
  3452.         <textSize>9</textSize>
  3453.         <textStyle>plain</textStyle>
  3454.         <textHeight>9</textHeight>
  3455.         <name>soundData</name>
  3456.         <script></script>
  3457.     </part>
  3458.     <part>
  3459.         <id>28</id>
  3460.         <type>button</type>
  3461.         <visible> <true /> </visible>
  3462.         <reserved5> 0 </reserved5>
  3463.         <reserved4> 0 </reserved4>
  3464.         <reserved3> 0 </reserved3>
  3465.         <reserved2> 0 </reserved2>
  3466.         <reserved1> 0 </reserved1>
  3467.         <enabled> <true /> </enabled>
  3468.         <rect>
  3469.             <left>449</left>
  3470.             <top>311</top>
  3471.             <right>551</right>
  3472.             <bottom>320</bottom>
  3473.         </rect>
  3474.         <style>transparent</style>
  3475.         <showName> <false /> </showName>
  3476.         <highlight> <true /> </highlight>
  3477.         <autoHighlight> <false /> </autoHighlight>
  3478.         <sharedHighlight> <true /> </sharedHighlight>
  3479.         <family>0</family>
  3480.         <titleWidth>0</titleWidth>
  3481.         <icon>0</icon>
  3482.         <textAlign>center</textAlign>
  3483.         <font>Chicago</font>
  3484.         <textSize>12</textSize>
  3485.         <textStyle>plain</textStyle>
  3486.         <name>ratebar</name>
  3487.         <script></script>
  3488.     </part>
  3489.     <part>
  3490.         <id>29</id>
  3491.         <type>button</type>
  3492.         <visible> <true /> </visible>
  3493.         <reserved5> 0 </reserved5>
  3494.         <reserved4> 0 </reserved4>
  3495.         <reserved3> 0 </reserved3>
  3496.         <reserved2> 0 </reserved2>
  3497.         <reserved1> 0 </reserved1>
  3498.         <enabled> <true /> </enabled>
  3499.         <rect>
  3500.             <left>500</left>
  3501.             <top>306</top>
  3502.             <right>508</right>
  3503.             <bottom>327</bottom>
  3504.         </rect>
  3505.         <style>rectangle</style>
  3506.         <showName> <false /> </showName>
  3507.         <highlight> <false /> </highlight>
  3508.         <autoHighlight> <false /> </autoHighlight>
  3509.         <sharedHighlight> <true /> </sharedHighlight>
  3510.         <family>0</family>
  3511.         <titleWidth>0</titleWidth>
  3512.         <icon>0</icon>
  3513.         <textAlign>center</textAlign>
  3514.         <font>Chicago</font>
  3515.         <textSize>12</textSize>
  3516.         <textStyle>plain</textStyle>
  3517.         <name>rateKnob</name>
  3518.         <script>on mouseDown
  3519. global dX
  3520. put item 1 of the clickLoc-the Left of me into dX
  3521. end mouseDown
  3522.  
  3523. on mouseStillDown
  3524. global dX
  3525. put the mouseLoc into currLoc
  3526.  
  3527. put the left of btn ratebar+1+dX into minX
  3528. put the right of btn ratebar-width of me-1+dX into maxX
  3529.  
  3530. put the topLeft of me into newTopLeft
  3531. put min(max(item 1 of currLoc, minX),maxX)-dX into item 1 of newtopLeft
  3532.  
  3533. set the topLeft of me to newTopLeft
  3534.  
  3535. put (item 1 of newtopLeft - minX+dX) / (maxX-minX) into fraction
  3536.  
  3537. put (round(fraction * 100) -50)/10 into x
  3538. put x into cd field rateData
  3539.  
  3540. global currwindow
  3541. if there is a window currwindow then
  3542. set rate of window currwindow to x
  3543. end if
  3544. end mouseStillDown
  3545. </script>
  3546.     </part>
  3547.     <part>
  3548.         <id>30</id>
  3549.         <type>field</type>
  3550.         <visible> <true /> </visible>
  3551.         <dontWrap> <false /> </dontWrap>
  3552.         <dontSearch> <false /> </dontSearch>
  3553.         <sharedText> <false /> </sharedText>
  3554.         <fixedLineHeight> <false /> </fixedLineHeight>
  3555.         <autoTab> <false /> </autoTab>
  3556.         <lockText> <true /> </lockText>
  3557.         <rect>
  3558.             <left>411</left>
  3559.             <top>308</top>
  3560.             <right>445</right>
  3561.             <bottom>321</bottom>
  3562.         </rect>
  3563.         <style>rectangle</style>
  3564.         <autoSelect> <false /> </autoSelect>
  3565.         <showLines> <false /> </showLines>
  3566.         <wideMargins> <false /> </wideMargins>
  3567.         <multipleLines> <false /> </multipleLines>
  3568.         <reservedFamily> 0 </reservedFamily>
  3569.         <titleWidth>0</titleWidth>
  3570.         <icon>0</icon>
  3571.         <textAlign>left</textAlign>
  3572.         <font>Geneva</font>
  3573.         <textSize>9</textSize>
  3574.         <textStyle>plain</textStyle>
  3575.         <textHeight>9</textHeight>
  3576.         <name>rateData</name>
  3577.         <script></script>
  3578.     </part>
  3579.     <part>
  3580.         <id>34</id>
  3581.         <type>button</type>
  3582.         <visible> <true /> </visible>
  3583.         <reserved5> 0 </reserved5>
  3584.         <reserved4> 0 </reserved4>
  3585.         <reserved3> 0 </reserved3>
  3586.         <reserved2> 0 </reserved2>
  3587.         <reserved1> 0 </reserved1>
  3588.         <enabled> <true /> </enabled>
  3589.         <rect>
  3590.             <left>418</left>
  3591.             <top>68</top>
  3592.             <right>480</right>
  3593.             <bottom>84</bottom>
  3594.         </rect>
  3595.         <style>radiobutton</style>
  3596.         <showName> <true /> </showName>
  3597.         <highlight> <false /> </highlight>
  3598.         <autoHighlight> <true /> </autoHighlight>
  3599.         <sharedHighlight> <true /> </sharedHighlight>
  3600.         <family>0</family>
  3601.         <titleWidth>0</titleWidth>
  3602.         <icon>0</icon>
  3603.         <textAlign>center</textAlign>
  3604.         <font>Geneva</font>
  3605.         <textSize>9</textSize>
  3606.         <textStyle>bold</textStyle>
  3607.         <name>Card</name>
  3608.         <script>on mouseUp
  3609. LocSelect
  3610. end mouseUp</script>
  3611.     </part>
  3612.     <part>
  3613.         <id>35</id>
  3614.         <type>button</type>
  3615.         <visible> <true /> </visible>
  3616.         <reserved5> 0 </reserved5>
  3617.         <reserved4> 0 </reserved4>
  3618.         <reserved3> 0 </reserved3>
  3619.         <reserved2> 0 </reserved2>
  3620.         <reserved1> 0 </reserved1>
  3621.         <enabled> <true /> </enabled>
  3622.         <rect>
  3623.             <left>418</left>
  3624.             <top>53</top>
  3625.             <right>550</right>
  3626.             <bottom>69</bottom>
  3627.         </rect>
  3628.         <style>radiobutton</style>
  3629.         <showName> <true /> </showName>
  3630.         <highlight> <false /> </highlight>
  3631.         <autoHighlight> <true /> </autoHighlight>
  3632.         <sharedHighlight> <true /> </sharedHighlight>
  3633.         <family>0</family>
  3634.         <titleWidth>0</titleWidth>
  3635.         <icon>0</icon>
  3636.         <textAlign>center</textAlign>
  3637.         <font>Geneva</font>
  3638.         <textSize>9</textSize>
  3639.         <textStyle>bold</textStyle>
  3640.         <name>Deepest</name>
  3641.         <script>on mouseUp
  3642. LocSelect
  3643. end mouseUp</script>
  3644.     </part>
  3645.     <part>
  3646.         <id>43</id>
  3647.         <type>button</type>
  3648.         <visible> <true /> </visible>
  3649.         <reserved5> 0 </reserved5>
  3650.         <reserved4> 0 </reserved4>
  3651.         <reserved3> 0 </reserved3>
  3652.         <reserved2> 0 </reserved2>
  3653.         <reserved1> 0 </reserved1>
  3654.         <enabled> <true /> </enabled>
  3655.         <rect>
  3656.             <left>418</left>
  3657.             <top>83</top>
  3658.             <right>550</right>
  3659.             <bottom>99</bottom>
  3660.         </rect>
  3661.         <style>radiobutton</style>
  3662.         <showName> <true /> </showName>
  3663.         <highlight> <true /> </highlight>
  3664.         <autoHighlight> <true /> </autoHighlight>
  3665.         <sharedHighlight> <true /> </sharedHighlight>
  3666.         <family>0</family>
  3667.         <titleWidth>0</titleWidth>
  3668.         <icon>0</icon>
  3669.         <textAlign>center</textAlign>
  3670.         <font>Geneva</font>
  3671.         <textSize>9</textSize>
  3672.         <textStyle>bold</textStyle>
  3673.         <name>topLeft of btn here</name>
  3674.         <script>on mouseUp
  3675. LocSelect
  3676. end mouseUp</script>
  3677.     </part>
  3678.     <part>
  3679.         <id>44</id>
  3680.         <type>button</type>
  3681.         <visible> <true /> </visible>
  3682.         <reserved5> 0 </reserved5>
  3683.         <reserved4> 0 </reserved4>
  3684.         <reserved3> 0 </reserved3>
  3685.         <reserved2> 0 </reserved2>
  3686.         <reserved1> 0 </reserved1>
  3687.         <enabled> <true /> </enabled>
  3688.         <rect>
  3689.             <left>486</left>
  3690.             <top>126</top>
  3691.             <right>570</right>
  3692.             <bottom>142</bottom>
  3693.         </rect>
  3694.         <style>radiobutton</style>
  3695.         <showName> <true /> </showName>
  3696.         <highlight> <false /> </highlight>
  3697.         <autoHighlight> <true /> </autoHighlight>
  3698.         <sharedHighlight> <true /> </sharedHighlight>
  3699.         <family>0</family>
  3700.         <titleWidth>0</titleWidth>
  3701.         <icon>0</icon>
  3702.         <textAlign>center</textAlign>
  3703.         <font>Geneva</font>
  3704.         <textSize>9</textSize>
  3705.         <textStyle>bold</textStyle>
  3706.         <name>Neither</name>
  3707.         <script>on mouseUp
  3708. LoopSelect
  3709. end mouseUp</script>
  3710.     </part>
  3711.     <part>
  3712.         <id>59</id>
  3713.         <type>field</type>
  3714.         <visible> <false /> </visible>
  3715.         <dontWrap> <false /> </dontWrap>
  3716.         <dontSearch> <false /> </dontSearch>
  3717.         <sharedText> <false /> </sharedText>
  3718.         <fixedLineHeight> <false /> </fixedLineHeight>
  3719.         <autoTab> <false /> </autoTab>
  3720.         <lockText> <true /> </lockText>
  3721.         <rect>
  3722.             <left>3</left>
  3723.             <top>127</top>
  3724.             <right>342</right>
  3725.             <bottom>299</bottom>
  3726.         </rect>
  3727.         <style>shadow</style>
  3728.         <autoSelect> <false /> </autoSelect>
  3729.         <showLines> <false /> </showLines>
  3730.         <wideMargins> <false /> </wideMargins>
  3731.         <multipleLines> <false /> </multipleLines>
  3732.         <reservedFamily> 0 </reservedFamily>
  3733.         <titleWidth>0</titleWidth>
  3734.         <icon>0</icon>
  3735.         <textAlign>left</textAlign>
  3736.         <font>Palatino</font>
  3737.         <textSize>18</textSize>
  3738.         <textStyle>plain</textStyle>
  3739.         <textHeight>24</textHeight>
  3740.         <name>help text</name>
  3741.         <script>on mouseUp
  3742. hide me
  3743. end mouseUp</script>
  3744.     </part>
  3745.     <part>
  3746.         <id>45</id>
  3747.         <type>field</type>
  3748.         <visible> <false /> </visible>
  3749.         <dontWrap> <false /> </dontWrap>
  3750.         <dontSearch> <false /> </dontSearch>
  3751.         <sharedText> <false /> </sharedText>
  3752.         <fixedLineHeight> <false /> </fixedLineHeight>
  3753.         <autoTab> <false /> </autoTab>
  3754.         <lockText> <true /> </lockText>
  3755.         <rect>
  3756.             <left>6</left>
  3757.             <top>289</top>
  3758.             <right>373</right>
  3759.             <bottom>336</bottom>
  3760.         </rect>
  3761.         <style>rectangle</style>
  3762.         <autoSelect> <false /> </autoSelect>
  3763.         <showLines> <false /> </showLines>
  3764.         <wideMargins> <false /> </wideMargins>
  3765.         <multipleLines> <false /> </multipleLines>
  3766.         <reservedFamily> 0 </reservedFamily>
  3767.         <titleWidth>0</titleWidth>
  3768.         <icon>0</icon>
  3769.         <textAlign>left</textAlign>
  3770.         <font>Geneva</font>
  3771.         <textSize>9</textSize>
  3772.         <textStyle>bold</textStyle>
  3773.         <textHeight>12</textHeight>
  3774.         <name>theCommand</name>
  3775.         <script>on mouseUp
  3776. end mouseUp</script>
  3777.     </part>
  3778.     <part>
  3779.         <id>46</id>
  3780.         <type>button</type>
  3781.         <visible> <true /> </visible>
  3782.         <reserved5> 0 </reserved5>
  3783.         <reserved4> 0 </reserved4>
  3784.         <reserved3> 0 </reserved3>
  3785.         <reserved2> 0 </reserved2>
  3786.         <reserved1> 0 </reserved1>
  3787.         <enabled> <true /> </enabled>
  3788.         <rect>
  3789.             <left>7</left>
  3790.             <top>271</top>
  3791.             <right>106</right>
  3792.             <bottom>286</bottom>
  3793.         </rect>
  3794.         <style>rectangle</style>
  3795.         <showName> <true /> </showName>
  3796.         <highlight> <false /> </highlight>
  3797.         <autoHighlight> <true /> </autoHighlight>
  3798.         <sharedHighlight> <true /> </sharedHighlight>
  3799.         <family>0</family>
  3800.         <titleWidth>0</titleWidth>
  3801.         <icon>0</icon>
  3802.         <textAlign>center</textAlign>
  3803.         <font>Geneva</font>
  3804.         <textSize>9</textSize>
  3805.         <textStyle>bold</textStyle>
  3806.         <name>Show Command</name>
  3807.         <script>on mouseUp
  3808. if "show" is in the name of me then
  3809. put composecommand() into cd field theCommand
  3810. show cd field theCommand
  3811. show cd btn "Copy to Clipboard"
  3812. set name of me to "Hide Command"
  3813. else
  3814. hide cd field theCommand
  3815. hide cd btn "Copy to Clipboard"
  3816. set name of me to "Show Command"
  3817. end if
  3818. end mouseUp</script>
  3819.     </part>
  3820.     <part>
  3821.         <id>47</id>
  3822.         <type>button</type>
  3823.         <visible> <true /> </visible>
  3824.         <reserved5> 0 </reserved5>
  3825.         <reserved4> 0 </reserved4>
  3826.         <reserved3> 0 </reserved3>
  3827.         <reserved2> 0 </reserved2>
  3828.         <reserved1> 0 </reserved1>
  3829.         <enabled> <true /> </enabled>
  3830.         <rect>
  3831.             <left>488</left>
  3832.             <top>68</top>
  3833.             <right>550</right>
  3834.             <bottom>84</bottom>
  3835.         </rect>
  3836.         <style>radiobutton</style>
  3837.         <showName> <true /> </showName>
  3838.         <highlight> <false /> </highlight>
  3839.         <autoHighlight> <true /> </autoHighlight>
  3840.         <sharedHighlight> <true /> </sharedHighlight>
  3841.         <family>0</family>
  3842.         <titleWidth>0</titleWidth>
  3843.         <icon>0</icon>
  3844.         <textAlign>center</textAlign>
  3845.         <font>Geneva</font>
  3846.         <textSize>9</textSize>
  3847.         <textStyle>bold</textStyle>
  3848.         <name>Main</name>
  3849.         <script>on mouseUp
  3850. LocSelect
  3851. end mouseUp</script>
  3852.     </part>
  3853.     <part>
  3854.         <id>48</id>
  3855.         <type>button</type>
  3856.         <visible> <true /> </visible>
  3857.         <reserved5> 0 </reserved5>
  3858.         <reserved4> 0 </reserved4>
  3859.         <reserved3> 0 </reserved3>
  3860.         <reserved2> 0 </reserved2>
  3861.         <reserved1> 0 </reserved1>
  3862.         <enabled> <true /> </enabled>
  3863.         <rect>
  3864.             <left>459</left>
  3865.             <top>196</top>
  3866.             <right>560</right>
  3867.             <bottom>212</bottom>
  3868.         </rect>
  3869.         <style>checkbox</style>
  3870.         <showName> <true /> </showName>
  3871.         <highlight> <false /> </highlight>
  3872.         <autoHighlight> <true /> </autoHighlight>
  3873.         <sharedHighlight> <true /> </sharedHighlight>
  3874.         <family>0</family>
  3875.         <titleWidth>0</titleWidth>
  3876.         <icon>0</icon>
  3877.         <textAlign>center</textAlign>
  3878.         <font>Geneva</font>
  3879.         <textSize>9</textSize>
  3880.         <textStyle>bold</textStyle>
  3881.         <name>Load into RAM</name>
  3882.         <script>on mouseUp
  3883. pass mouseUp
  3884.  
  3885. end mouseUp</script>
  3886.     </part>
  3887.     <part>
  3888.         <id>50</id>
  3889.         <type>button</type>
  3890.         <visible> <true /> </visible>
  3891.         <reserved5> 0 </reserved5>
  3892.         <reserved4> 0 </reserved4>
  3893.         <reserved3> 0 </reserved3>
  3894.         <reserved2> 0 </reserved2>
  3895.         <reserved1> 0 </reserved1>
  3896.         <enabled> <true /> </enabled>
  3897.         <rect>
  3898.             <left>459</left>
  3899.             <top>226</top>
  3900.             <right>574</right>
  3901.             <bottom>242</bottom>
  3902.         </rect>
  3903.         <style>checkbox</style>
  3904.         <showName> <true /> </showName>
  3905.         <highlight> <false /> </highlight>
  3906.         <autoHighlight> <true /> </autoHighlight>
  3907.         <sharedHighlight> <true /> </sharedHighlight>
  3908.         <family>0</family>
  3909.         <titleWidth>0</titleWidth>
  3910.         <icon>0</icon>
  3911.         <textAlign>center</textAlign>
  3912.         <font>Geneva</font>
  3913.         <textSize>9</textSize>
  3914.         <textStyle>bold</textStyle>
  3915.         <name>Don't Paint White</name>
  3916.         <script>on mouseUp
  3917. pass mouseUp
  3918. end mouseUp</script>
  3919.     </part>
  3920.     <part>
  3921.         <id>60</id>
  3922.         <type>button</type>
  3923.         <visible> <true /> </visible>
  3924.         <reserved5> 0 </reserved5>
  3925.         <reserved4> 0 </reserved4>
  3926.         <reserved3> 0 </reserved3>
  3927.         <reserved2> 0 </reserved2>
  3928.         <reserved1> 0 </reserved1>
  3929.         <enabled> <true /> </enabled>
  3930.         <rect>
  3931.             <left>355</left>
  3932.             <top>181</top>
  3933.             <right>442</right>
  3934.             <bottom>197</bottom>
  3935.         </rect>
  3936.         <style>checkbox</style>
  3937.         <showName> <true /> </showName>
  3938.         <highlight> <false /> </highlight>
  3939.         <autoHighlight> <true /> </autoHighlight>
  3940.         <sharedHighlight> <true /> </sharedHighlight>
  3941.         <family>0</family>
  3942.         <titleWidth>0</titleWidth>
  3943.         <icon>0</icon>
  3944.         <textAlign>center</textAlign>
  3945.         <font>Geneva</font>
  3946.         <textSize>9</textSize>
  3947.         <textStyle>bold</textStyle>
  3948.         <name>Badge</name>
  3949.         <script>on mouseUp
  3950. global currwindow
  3951. if there is a window currwindow then
  3952. set badge of window currwindow to the hilite of me
  3953. end if
  3954. pass mouseUp
  3955. end mouseUp</script>
  3956.     </part>
  3957.     <part>
  3958.         <id>67</id>
  3959.         <type>button</type>
  3960.         <visible> <true /> </visible>
  3961.         <reserved5> 0 </reserved5>
  3962.         <reserved4> 0 </reserved4>
  3963.         <reserved3> 0 </reserved3>
  3964.         <reserved2> 0 </reserved2>
  3965.         <reserved1> 0 </reserved1>
  3966.         <enabled> <true /> </enabled>
  3967.         <rect>
  3968.             <left>459</left>
  3969.             <top>241</top>
  3970.             <right>574</right>
  3971.             <bottom>257</bottom>
  3972.         </rect>
  3973.         <style>checkbox</style>
  3974.         <showName> <true /> </showName>
  3975.         <highlight> <false /> </highlight>
  3976.         <autoHighlight> <true /> </autoHighlight>
  3977.         <sharedHighlight> <true /> </sharedHighlight>
  3978.         <family>0</family>
  3979.         <titleWidth>0</titleWidth>
  3980.         <icon>0</icon>
  3981.         <textAlign>center</textAlign>
  3982.         <font>Geneva</font>
  3983.         <textSize>9</textSize>
  3984.         <textStyle>bold</textStyle>
  3985.         <name>Fast Idle</name>
  3986.         <script>on mouseUp
  3987. pass mouseUp
  3988. end mouseUp</script>
  3989.     </part>
  3990.     <part>
  3991.         <id>69</id>
  3992.         <type>button</type>
  3993.         <visible> <false /> </visible>
  3994.         <reserved5> 0 </reserved5>
  3995.         <reserved4> 0 </reserved4>
  3996.         <reserved3> 0 </reserved3>
  3997.         <reserved2> 0 </reserved2>
  3998.         <reserved1> 0 </reserved1>
  3999.         <enabled> <true /> </enabled>
  4000.         <rect>
  4001.             <left>114</left>
  4002.             <top>271</top>
  4003.             <right>221</right>
  4004.             <bottom>286</bottom>
  4005.         </rect>
  4006.         <style>rectangle</style>
  4007.         <showName> <true /> </showName>
  4008.         <highlight> <false /> </highlight>
  4009.         <autoHighlight> <true /> </autoHighlight>
  4010.         <sharedHighlight> <true /> </sharedHighlight>
  4011.         <family>0</family>
  4012.         <titleWidth>0</titleWidth>
  4013.         <icon>0</icon>
  4014.         <textAlign>center</textAlign>
  4015.         <font>Geneva</font>
  4016.         <textSize>9</textSize>
  4017.         <textStyle>bold</textStyle>
  4018.         <name>Copy To Clipboard</name>
  4019.         <script>on mouseUp
  4020. select text of cd field theCommand
  4021. domenu copy text
  4022. select empty
  4023. end mouseUp</script>
  4024.     </part>
  4025.     <part>
  4026.         <id>70</id>
  4027.         <type>button</type>
  4028.         <visible> <true /> </visible>
  4029.         <reserved5> 0 </reserved5>
  4030.         <reserved4> 0 </reserved4>
  4031.         <reserved3> 0 </reserved3>
  4032.         <reserved2> 0 </reserved2>
  4033.         <reserved1> 0 </reserved1>
  4034.         <enabled> <true /> </enabled>
  4035.         <rect>
  4036.             <left>312</left>
  4037.             <top>339</top>
  4038.             <right>425</right>
  4039.             <bottom>358</bottom>
  4040.         </rect>
  4041.         <style>roundrect</style>
  4042.         <showName> <true /> </showName>
  4043.         <highlight> <false /> </highlight>
  4044.         <autoHighlight> <true /> </autoHighlight>
  4045.         <sharedHighlight> <true /> </sharedHighlight>
  4046.         <family>0</family>
  4047.         <titleWidth>0</titleWidth>
  4048.         <icon>0</icon>
  4049.         <textAlign>center</textAlign>
  4050.         <font>Chicago</font>
  4051.         <textSize>12</textSize>
  4052.         <textStyle>plain</textStyle>
  4053.         <name>Copy Frame</name>
  4054.         <script>on mouseUp
  4055. global currwindow
  4056. if there is a window currwindow then
  4057. send copyFrame to window currwindow
  4058. if "Error" is in the result then answer the result
  4059. end if
  4060. end mouseUp</script>
  4061.     </part>
  4062.     <part>
  4063.         <id>71</id>
  4064.         <type>button</type>
  4065.         <visible> <true /> </visible>
  4066.         <reserved5> 0 </reserved5>
  4067.         <reserved4> 0 </reserved4>
  4068.         <reserved3> 0 </reserved3>
  4069.         <reserved2> 0 </reserved2>
  4070.         <reserved1> 0 </reserved1>
  4071.         <enabled> <true /> </enabled>
  4072.         <rect>
  4073.             <left>459</left>
  4074.             <top>211</top>
  4075.             <right>565</right>
  4076.             <bottom>227</bottom>
  4077.         </rect>
  4078.         <style>checkbox</style>
  4079.         <showName> <true /> </showName>
  4080.         <highlight> <false /> </highlight>
  4081.         <autoHighlight> <true /> </autoHighlight>
  4082.         <sharedHighlight> <true /> </sharedHighlight>
  4083.         <family>0</family>
  4084.         <titleWidth>0</titleWidth>
  4085.         <icon>0</icon>
  4086.         <textAlign>center</textAlign>
  4087.         <font>Geneva</font>
  4088.         <textSize>9</textSize>
  4089.         <textStyle>bold</textStyle>
  4090.         <name>Show Grow Box</name>
  4091.         <script>on mouseUp
  4092. pass mouseUp
  4093.  
  4094. end mouseUp</script>
  4095.     </part>
  4096.     <content>
  4097.         <layer>background</layer>
  4098.         <id>4</id>
  4099.         <text>Your Volume:Your Folder:Your File</text>
  4100.     </content>
  4101.     <content>
  4102.         <layer>card</layer>
  4103.         <id>27</id>
  4104.         <text>255</text>
  4105.     </content>
  4106.     <content>
  4107.         <layer>card</layer>
  4108.         <id>30</id>
  4109.         <text>1</text>
  4110.     </content>
  4111.     <content>
  4112.         <layer>background</layer>
  4113.         <id>5</id>
  4114.         <text>Play a Movie</text>
  4115.     </content>
  4116.     <content>
  4117.         <layer>card</layer>
  4118.         <id>45</id>
  4119.         <text>QTMovie OpenMovie,TallWindoid,bg field fileName,the topLeft of btn here,loop,mute</text>
  4120.     </content>
  4121.     <content>
  4122.         <layer>card</layer>
  4123.         <id>59</id>
  4124.         <text>This card lets you try out most of the initial options when playing a movie in a window. The Show Command button will show you the exact syntax of the command sent to play the movie. You can drag the ‚Äúhere‚Äù button around to change the initial position of the movie.
  4125. </text>
  4126.     </content>
  4127.     <name>Play a Movie</name>
  4128.     <script>on closecard
  4129. global currwindow
  4130. if there is a window currwindow then close window currwindow
  4131. pass CloseCard
  4132. end closecard
  4133.  
  4134. function composeCommand
  4135. put "QTMovie OpenMovie," & the short name of btn id 21 & "," into QTCommand
  4136.  
  4137. put ",the topLeft of btn here" into movieLoc
  4138. if the hilite of btn "card" then
  4139. put ",card" into movieLoc
  4140. else if the hilite of btn "deepest" then
  4141. put ",deepest" into movieLoc
  4142. else if the hilite of btn "main" then
  4143. put ",main" into movieLoc
  4144. end if
  4145.  
  4146. put "bg field fileName" after QTCommand
  4147. put movieLoc after QTCommand
  4148.  
  4149. if the hilite of btn controller is not true then
  4150. put ",nocontroller" after QTCommand
  4151. end if
  4152.  
  4153. if the hilite of btn "Show Grow Box" is true then
  4154. put ",showGrowBox" after QTCommand
  4155. end if
  4156.  
  4157. if the hilite of btn badge is true then
  4158. put ",badge" after QTCommand
  4159. end if
  4160.  
  4161. if the hilite of btn loop is true then
  4162. put ",loop" after QTCommand
  4163. end if
  4164.  
  4165. if the hilite of btn palindrome is true then
  4166. put ",palindrome" after QTCommand
  4167. end if
  4168.  
  4169. if the hilite of btn closeonfinish is true then
  4170. put ",closeonfinish" after QTCommand
  4171. end if
  4172.  
  4173. if the hilite of btn seeallframes is true then
  4174. put ",seeallframes" after QTCommand
  4175. end if
  4176.  
  4177. if the hilite of btn showposter is true then
  4178. put ",showposter" after QTCommand
  4179. end if
  4180.  
  4181. if the hilite of btn paused is true then
  4182. put ",paused" after QTCommand
  4183. end if
  4184.  
  4185. if the hilite of btn invisible is true then
  4186. put ",invisible" after QTCommand
  4187. end if
  4188.  
  4189. if the hilite of btn mute is true then
  4190. put ",mute" after QTCommand
  4191. end if
  4192.  
  4193. if the hilite of btn "load into ram" is true then
  4194. put ",loadIntoRAM" after QTCommand
  4195. end if
  4196.  
  4197. if the hilite of btn "Don't Paint White" is true then
  4198. put ",dontPaintWhite" after QTCommand
  4199. end if
  4200.  
  4201. if the hilite of btn "Fast Idle" is true then
  4202. put ",fastIdle" after QTCommand
  4203. end if
  4204.  
  4205. return QTCommand
  4206.  
  4207. end composeCommand
  4208.  
  4209. on setRateBar r
  4210. put r+10 into newR
  4211. put newR/20 into fraction
  4212. put left of btn rateBar + round(fraction * (right of btn rateBar - ¬¨
  4213. left of btn rateBar - width of btn rateKnob - 1)) into x
  4214. put topLeft of btn rateknob into newTopLeft
  4215. put x into item 1 of newTopLeft
  4216. set topLeft of btn rateKnob to newTopLeft
  4217. put r into cd field rateData
  4218. end setRateBar
  4219.  
  4220. on setSoundBar v
  4221. put v/255 into fraction
  4222. put left of btn soundBar + round(fraction * (right of btn soundBar - ¬¨
  4223. left of btn soundBar - width of btn soundKnob - 1)) into x
  4224. put topLeft of btn soundknob into newTopLeft
  4225. put x into item 1 of newTopLeft
  4226. set topLeft of btn soundKnob to newTopLeft
  4227. put v into cd field soundData
  4228. end setSoundBar
  4229.  
  4230. on LocSelect
  4231. put "deepest,card,main,topLeft of btn here" into btnNames
  4232. repeat with i = 1 to 4
  4233. put (item i of btnNames = the short name of the target) into hiliteit
  4234. set hilite of btn (item i of btnNames) to hiliteIt
  4235. end repeat
  4236. put composecommand() into cd field theCommand
  4237. end LocSelect
  4238.  
  4239. on LoopSelect
  4240. put "loop,palindrome,neither" into btnNames
  4241. repeat with i = 1 to 3
  4242. put (item i of btnNames = the short name of the target) into hiliteit
  4243. set hilite of btn (item i of btnNames) to hiliteIt
  4244. end repeat
  4245.  
  4246. global currWindow
  4247. get the short name of the target
  4248. if there is a window currWindow then
  4249. set loop of window currWindow to the hilite of btn loop
  4250. set palindrome of window currWindow to the hilite of btn palindrome
  4251. end if
  4252. put composecommand() into cd field theCommand
  4253. end LoopSelect
  4254.  
  4255. on CursorShape pt
  4256. set cursor to 3
  4257. end CursorShape
  4258.  
  4259. on setCursorShape
  4260. global currWindow
  4261. set cursorMsg of window currWindow to CursorShape
  4262. end setCursorShape
  4263.  
  4264. on primeCard
  4265. set name of btn id 21 to "TallWindoid"
  4266.  
  4267. set hilite of btn "deepest" to false
  4268. set hilite of btn "card" to false
  4269. set hilite of btn "main" to false
  4270. set hilite of btn "topleft of btn here" to true
  4271.  
  4272. set hilite of btn "palindrome" to false
  4273. set hilite of btn "neither" to false
  4274. set hilite of btn "loop" to true
  4275.  
  4276. set hilite of btn "controller" to true
  4277. set hilite of btn "badge" to false
  4278. set hilite of btn "paused" to false
  4279. set hilite of btn "invisible" to false
  4280. set hilite of btn "mute" to false
  4281. set hilite of btn "closeonfinish" to false
  4282. set hilite of btn "seeallframes" to false
  4283. set hilite of btn "showposter" to false
  4284. set hilite of btn "load into ram" to false
  4285. set hilite of btn "don't paint white" to false
  4286. set hilite of btn "Fast Idle" to false
  4287. set hilite of btn "Show Grow Box" to false
  4288.  
  4289. setSoundBar 255
  4290. setRateBar 1
  4291.  
  4292. set rect of btn here to "77,88,122,124"
  4293.  
  4294. hide cd field theCommand
  4295. hide btn "Copy to clipboard"
  4296. set name of btn id 46 to "Show Command"
  4297.  
  4298. pass primeCard
  4299. end primeCard
  4300.  
  4301. on mouseUp
  4302. if "button" is in the name of the target then
  4303. put composecommand() into cd field theCommand
  4304. end if
  4305. end mouseUp</script>
  4306. </card>
  4307.  
  4308.  
  4309. card_2150.xml
  4310. <?xml version="1.0" encoding="utf-8" ?>
  4311. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4312. <card>
  4313.     <id>2150</id>
  4314.     <filler1>0</filler1>
  4315.     <bitmap>BMAP_5564.pbm</bitmap>
  4316.     <cantDelete> <false /> </cantDelete>
  4317.     <showPict> <true /> </showPict>
  4318.     <dontSearch> <false /> </dontSearch>
  4319.     <owner>2723</owner>
  4320.     <link rel="stylesheet" type="text/css" href="stylesheet_3289.css" />
  4321.     <part>
  4322.         <id>2</id>
  4323.         <type>button</type>
  4324.         <visible> <true /> </visible>
  4325.         <reserved5> 0 </reserved5>
  4326.         <reserved4> 0 </reserved4>
  4327.         <reserved3> 0 </reserved3>
  4328.         <reserved2> 0 </reserved2>
  4329.         <reserved1> 0 </reserved1>
  4330.         <enabled> <true /> </enabled>
  4331.         <rect>
  4332.             <left>3</left>
  4333.             <top>326</top>
  4334.             <right>481</right>
  4335.             <bottom>391</bottom>
  4336.         </rect>
  4337.         <style>opaque</style>
  4338.         <showName> <false /> </showName>
  4339.         <highlight> <false /> </highlight>
  4340.         <autoHighlight> <false /> </autoHighlight>
  4341.         <sharedHighlight> <true /> </sharedHighlight>
  4342.         <family>0</family>
  4343.         <titleWidth>0</titleWidth>
  4344.         <icon>0</icon>
  4345.         <textAlign>center</textAlign>
  4346.         <font>Chicago</font>
  4347.         <textSize>12</textSize>
  4348.         <textStyle>plain</textStyle>
  4349.         <name></name>
  4350.         <script></script>
  4351.     </part>
  4352.     <part>
  4353.         <id>3</id>
  4354.         <type>button</type>
  4355.         <visible> <true /> </visible>
  4356.         <reserved5> 0 </reserved5>
  4357.         <reserved4> 0 </reserved4>
  4358.         <reserved3> 0 </reserved3>
  4359.         <reserved2> 0 </reserved2>
  4360.         <reserved1> 0 </reserved1>
  4361.         <enabled> <true /> </enabled>
  4362.         <rect>
  4363.             <left>103</left>
  4364.             <top>4</top>
  4365.             <right>576</right>
  4366.             <bottom>32</bottom>
  4367.         </rect>
  4368.         <style>opaque</style>
  4369.         <showName> <false /> </showName>
  4370.         <highlight> <false /> </highlight>
  4371.         <autoHighlight> <false /> </autoHighlight>
  4372.         <sharedHighlight> <true /> </sharedHighlight>
  4373.         <family>0</family>
  4374.         <titleWidth>0</titleWidth>
  4375.         <icon>0</icon>
  4376.         <textAlign>center</textAlign>
  4377.         <font>Chicago</font>
  4378.         <textSize>12</textSize>
  4379.         <textStyle>plain</textStyle>
  4380.         <name></name>
  4381.         <script></script>
  4382.     </part>
  4383.     <part>
  4384.         <id>1</id>
  4385.         <type>button</type>
  4386.         <visible> <true /> </visible>
  4387.         <reserved5> 0 </reserved5>
  4388.         <reserved4> 0 </reserved4>
  4389.         <reserved3> 0 </reserved3>
  4390.         <reserved2> 0 </reserved2>
  4391.         <reserved1> 0 </reserved1>
  4392.         <enabled> <true /> </enabled>
  4393.         <rect>
  4394.             <left>266</left>
  4395.             <top>352</top>
  4396.             <right>360</right>
  4397.             <bottom>368</bottom>
  4398.         </rect>
  4399.         <style>shadow</style>
  4400.         <showName> <true /> </showName>
  4401.         <highlight> <false /> </highlight>
  4402.         <autoHighlight> <true /> </autoHighlight>
  4403.         <sharedHighlight> <true /> </sharedHighlight>
  4404.         <family>0</family>
  4405.         <titleWidth>0</titleWidth>
  4406.         <icon>0</icon>
  4407.         <textAlign>center</textAlign>
  4408.         <font>Chicago</font>
  4409.         <textSize>12</textSize>
  4410.         <textStyle>plain</textStyle>
  4411.         <name>Version Info</name>
  4412.         <script>on mouseUp
  4413. set visible of cd field versions to not the visible of cd field versions
  4414. end mouseUp</script>
  4415.     </part>
  4416.     <part>
  4417.         <id>4</id>
  4418.         <type>field</type>
  4419.         <visible> <true /> </visible>
  4420.         <dontWrap> <false /> </dontWrap>
  4421.         <dontSearch> <false /> </dontSearch>
  4422.         <sharedText> <false /> </sharedText>
  4423.         <fixedLineHeight> <false /> </fixedLineHeight>
  4424.         <autoTab> <false /> </autoTab>
  4425.         <lockText> <true /> </lockText>
  4426.         <rect>
  4427.             <left>264</left>
  4428.             <top>369</top>
  4429.             <right>488</right>
  4430.             <bottom>389</bottom>
  4431.         </rect>
  4432.         <style>rectangle</style>
  4433.         <autoSelect> <false /> </autoSelect>
  4434.         <showLines> <false /> </showLines>
  4435.         <wideMargins> <false /> </wideMargins>
  4436.         <multipleLines> <false /> </multipleLines>
  4437.         <reservedFamily> 0 </reservedFamily>
  4438.         <titleWidth>0</titleWidth>
  4439.         <icon>0</icon>
  4440.         <textAlign>left</textAlign>
  4441.         <font>Geneva</font>
  4442.         <textSize>9</textSize>
  4443.         <textStyle>plain</textStyle>
  4444.         <textHeight>12</textHeight>
  4445.         <name>versions</name>
  4446.         <script>on mouseup
  4447. hide me
  4448. end mouseup</script>
  4449.     </part>
  4450.     <part>
  4451.         <id>5</id>
  4452.         <type>field</type>
  4453.         <visible> <true /> </visible>
  4454.         <dontWrap> <false /> </dontWrap>
  4455.         <dontSearch> <false /> </dontSearch>
  4456.         <sharedText> <false /> </sharedText>
  4457.         <fixedLineHeight> <false /> </fixedLineHeight>
  4458.         <autoTab> <false /> </autoTab>
  4459.         <lockText> <false /> </lockText>
  4460.         <rect>
  4461.             <left>35</left>
  4462.             <top>103</top>
  4463.             <right>546</right>
  4464.             <bottom>347</bottom>
  4465.         </rect>
  4466.         <style>scrolling</style>
  4467.         <autoSelect> <false /> </autoSelect>
  4468.         <showLines> <false /> </showLines>
  4469.         <wideMargins> <false /> </wideMargins>
  4470.         <multipleLines> <false /> </multipleLines>
  4471.         <reservedFamily> 0 </reservedFamily>
  4472.         <titleWidth>0</titleWidth>
  4473.         <icon>0</icon>
  4474.         <textAlign>left</textAlign>
  4475.         <font>Geneva</font>
  4476.         <textSize>9</textSize>
  4477.         <textStyle>plain</textStyle>
  4478.         <textHeight>12</textHeight>
  4479.         <name></name>
  4480.         <script></script>
  4481.     </part>
  4482.     <part>
  4483.         <id>7</id>
  4484.         <type>field</type>
  4485.         <visible> <false /> </visible>
  4486.         <dontWrap> <false /> </dontWrap>
  4487.         <dontSearch> <false /> </dontSearch>
  4488.         <sharedText> <false /> </sharedText>
  4489.         <fixedLineHeight> <false /> </fixedLineHeight>
  4490.         <autoTab> <false /> </autoTab>
  4491.         <lockText> <true /> </lockText>
  4492.         <rect>
  4493.             <left>78</left>
  4494.             <top>27</top>
  4495.             <right>449</right>
  4496.             <bottom>47</bottom>
  4497.         </rect>
  4498.         <style>rectangle</style>
  4499.         <autoSelect> <false /> </autoSelect>
  4500.         <showLines> <false /> </showLines>
  4501.         <wideMargins> <false /> </wideMargins>
  4502.         <multipleLines> <false /> </multipleLines>
  4503.         <reservedFamily> 0 </reservedFamily>
  4504.         <titleWidth>0</titleWidth>
  4505.         <icon>0</icon>
  4506.         <textAlign>left</textAlign>
  4507.         <font>Geneva</font>
  4508.         <textSize>12</textSize>
  4509.         <textStyle>plain</textStyle>
  4510.         <textHeight>16</textHeight>
  4511.         <name>help text</name>
  4512.         <script>on mouseUp
  4513. hide me
  4514. end mouseUp</script>
  4515.     </part>
  4516.     <content>
  4517.         <layer>background</layer>
  4518.         <id>5</id>
  4519.         <text>Title Page</text>
  4520.     </content>
  4521.     <content>
  4522.         <layer>card</layer>
  4523.         <id>4</id>
  4524.         <text>QTMovie: Mon, Jun 8, 1992 1:57:58 PM</text>
  4525.     </content>
  4526.     <content>
  4527.         <layer>card</layer>
  4528.         <id>5</id>
  4529.         <text><span class="style1">TMovie Syntax:
  4530.   QTMovie OpenMovie, <window type or wdef id>, <file name>, <location or rect>, initial options...
  4531.   QTMovie OpenMovie, Direct, <file name>, <location or rect>, initial options...
  4532.   QTMovie Direct, <movieID>, command
  4533.   QTMovie Direct, <movieID>, Get, <property name>
  4534.   QTMovie Direct, <movieID>, Set, <property name>, <property value>
  4535.  
  4536. </span><span class="style2">Initial options</span><span class="style1">: loop, palindrome, mute, invisible, nocontroller, paused, closeOnFinish, showPoster,
  4537.         clipTo <,rect>, loadIntoRAM, seeAllFrames, dontPaintWhite, badge, fastIdle,  showGrowBox,   
  4538.          documentLayer, directWindow <,title>,  MovieWDEF only options: cmdKeyDraggable, borderWidth
  4539.  
  4540. </span><span class="style2">commands</span><span class="style1">: play, pause, reverse, stepFwd, stepRev, copyFrame, copyPoster, passMouseDown,
  4541.                   showController, hideController, loadSegIntoRAM, showPoster, idle, pasteBitMapClip, and more
  4542.  
  4543. </span><span class="style2">properties</span><span class="style1">: windowLoc, windowRect, movieRect, movieLoc, bitMapClip, clipRect, currTime, audioLevel,
  4544.                   visible, rate, movieScale, windowName, windowCloseMsg, mouseDownMsg, cursorMsg,     
  4545.                   timedCallBack, seeAllFrames, duration, fileSize, newMovieFile, hasController, segmentPlay, 
  4546.                   segmentEnd, segmentStart, foreColor, backColor, badge, loop, palindrome, movieLanguage, 
  4547.                   movieLanguages, enableKeys, mute, closeOnFinish and more
  4548. READ THE QuickTime XCMDs DOCUMENT!</span></text>
  4549.     </content>
  4550.     <content>
  4551.         <layer>background</layer>
  4552.         <id>4</id>
  4553.         <text>Your Volume:Your Folder:Your File</text>
  4554.     </content>
  4555.     <content>
  4556.         <layer>card</layer>
  4557.         <id>7</id>
  4558.         <text>Click on the button to the left to go to a particular card</text>
  4559.     </content>
  4560.     <name>Title Page</name>
  4561.     <script>on foo
  4562. qtmovie openmovie
  4563. answer the result
  4564. end foo</script>
  4565. </card>
  4566.  
  4567.  
  4568.